Tuesday, November 5, 2013

Selenium RC

Selenium RC Latest Interview Questions

1. How do you start Selenium RC?
      Create a selenium objecct by Implementing the Selenium Inteface with the DefaultSelenium  and then use selenium.start()
2. How do you connect Data base from selenium
       Use JDBC connectivity . Nothing to do with selenium
3. How do you handle Ajax controls using selenium?
       Using wait for condition command 
Eg. By typing in search engine how do you capture the auto suggestion 
4. How do you select the 2nd item in a List box or drop down.
       get all options using String[] options = selenium.getSelectOptions and use selenium.select(options[2]) which will select second option 
5. How do you identify an object using selenium?
       using Fire bug. IE devtool bat find the object's id or name or class or Xpath and many more..... 
6. How do you capture an element loading after the page load?
       What does capture means? anyways use waitForPageToLoad 
7. Brief about your framework
    You have to take care of this 
8. What is the difference between assert and Verify Commands?
9. Explain about your reporting method
       Junit or Test NG Reports 
10.How do you verify an object presented in multiple pages.
        Use need to assert the object in each and every page you expect it to be present
11.What are the locators available in Selenium? 
Check the 5th Ques 
12.What is the difference between single and double slash in Xpath. 
Double >> Parent , Single >> Child 
13.Brief about Selenium Client.
Check the Selenium RC documentation 
14.Did you write any User Extensions.
15.What are all things can not be done through selenium IDE
16.Brief about Selenium Grid.
Check Selenium Documentation . Its ideally used for Parallel distribution of your tests 
17.Is it possible to start the Remote engine more than once in an instance. 
18. How to use selenium for performance testing 
         Ideally Cannot ... You have to integrate Jmeter along with Selenium
19. How to start the selenium server from your language class?
Server server = new SeleniumServer();
server.start(); 
20. Is it possible to handle multiple pop ups in selenium?
 Yes 
22. Give the benefits of SQL Stored procedure in selenium?
Invalid Question! Who's that great fellow who had asked you this question? 
23.What are the difficulties or challenge you faced in selenium?
Many...Ajax, handling windows controls 
24. How do you check a single test method in multiple browser?
Using Selenium Grid 
25. What is the annotation you use to connect the Spread sheet in Junit.


26.Brief about Junit annotations.
Check Junit site 
27.How can we speed up the selenium script execution?
useXpathLibrar(libraryName) when you are using too many xpaths 28.If the default port of selenium is busy then which port you use?
which ever valid port which is not being used by the processes . Try below
RemoteControlConfiguration rcc = new RemoteControlConfiguration();
rcc.setPort(5555);
SeleniumServer server = new SeleniumServer(rcc);
29.Explain types of SQL joins.
Not a relavant question on Selenium 
30.How do you handle the secured connection error in HTTPS?
run your tests in Firefoxproxy and iexploreproxy mode , provided installation of cyber villain certificate
use rcc.setTrustAllCertificates(true) 
31.How do you compare two strings or values are same.
 using junit assertEquals(String1,String2) 

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...