Monday, 2 February 2015

Top 15 Selenium RC(Remote Control) Interview Questions

1) What is selenium RC (Remote Control)?
Selenium IDE have limitations in terms of browser support and language support. By using
Selenium RC limitation can be diminished.
On different platforms and different web browser for automating web application
selenium RC is used with languages like Java, C#, Perl, Python
Selenium RC is a java based and using any language it can interact with the web
application
Using server you can bypass the restriction and run your automation script running
against any web application
2) Why Selenium RC is used?
Selenium IDE does not directly support many functions like condition statements, Iteration,
logging and reporting of test results, unexpected error handling and so on as IDE supports only
HTML language. To handle such issues Selenium RC is used it supports the language like
Perl, Ruby, Python, PHP using these languages we can write the program to achieve the IDE
issues.
3) Explain what is the main difference between web-driver and RC ?
The main difference between Selenium RC and Webdriver is that, selenium RC injects
javascript function into browsers when the page is loaded. On the other hand, Selenium
Webdriver drives the browser using browsers built in support
4) What are the advantages of RC?
Advantages of RC are
Can read or write data from/ to .xls, .txt, etc
It can handle dynamic objects and Ajax based UI elements
Loops and conditions can be used for better performance and flexibility
Support many Programming languages and Operating Systems
For any JAVA script enabled browser Selenium RC can be used
1 / 4

5) Explain what is framework and what are the frameworks available in RC?
A collection of libraries and classes is known as Framework and they are helpful when testers
has to automate test cases. NUnit, JUnit, TestNG, Bromine, RSpec, unittest are some of the
frameworks available in RC .
6) How can we handle pop-ups in RC ?
To handle pop-ups in RC , using selectWindow method, pop-up window will be selected and
windowFocus method will let the control from current window to pop-up windows and perform
actions according to script
7) What are the technical limitations while using Selenium RC?
Apart from “same origin policy” restriction from js, Selenium is also restricted from exercising
anything that is outside browser.
8) Can we use Selenium RC to drive tests on two different browsers on one operating
system without Selenium Grid?
Yes, it is possible when you are not using JAVA testing framework. Instead of using Java
testing framework if you are using java client driver of selenium then TestNG allows you to do
this. By using “parallel=test” attribute you can set tests to be executed in parallel and can
define two different tests, each using different browser.
9) Why to use TestNG with Selenium RC ?
If you want full automation against different server and client platforms, You need a way to
2 / 4

invoke the tests from a command line process, reports that tells you what happened and
flexibility in how you create your test suites. TestNG gives that flexibility.
10) Explain how you can capture server side log Selenium Server?
To capture server side log in Selenium Server, you can use command
java –jar .jar –log selenium.log
11) Other than the default port 4444 how you can run Selenium Server?
You can run Selenium server on java-jar selenium-server.jar-port other than its default port
12) How Selenium grid hub keeps in touch with RC slave machine?
At predefined time selenium grid hub keeps polling all RC slaves to make sure it is available for
testing. The deciding parameter is called “remoteControlPollingIntervalSeconds” and is
defined in “grid_configuration.yml”file
13) Using Selenium how can you handle network latency ?
To handle network latency you can use driver.manage.pageloadingtime for network latency
14) To enter values onto text boxes what is the command that can be used?
To enter values onto text boxes we can use command sendkeys()
15) How do you identify an object using selenium?
To identify an object using Selenium you can use
isElementPresent(String locator)

isElementPresent takes a locator as the argument and if found returns a Boolean

No comments:

Post a Comment