Wednesday, November 19, 2014
On 1:01 AM by Unknown No comments
Answer 60: While using java you need to create instance of DefaultSelenium class
and pass it four parameters –
selenium = new DefaultSelenium(serverHost,
serverPort, browser, appURL);
selenium.start();
Herein you need to pass:
- Host -- where Selenium server is running
- Port -- of Selenium server
- Browser -- where tests are to be executed and
- application URL
Example:
selenium=new
DefaultSelenium("localhost", 4445,
"*iexplore","http://www.imdb.com/");
selenium.start();
selenium.open("/");
selenium.windowMaximize();
selenium.windowFocus();
Answer 61: Yes, since Selenium server is written in java you need java to be
installed on your system to be able to use it. Even though, you are not being
using java to program your tests.
Answer 62: Following browsers could be used with Selenium –
- *firefox
- *firefoxproxy
- *pifirefox
- *chrome
- *iexploreproxy
- *iexplore
- *firefox3
- *safariproxy
- *googlechrome
- *konqueror
- *firefox2
- *safari
- *piiexplore
- *firefoxchrome
- *opera
- *iehta
- *custom
Here pi and proxy stand
for proxy injection mode of Selenium server
Subscribe to:
Post Comments (Atom)
Search
Popular Posts
-
Sample Selenium IDE Test Script by Recording: We will use the Mercury Tours website as our web application under test. It is an online flig...
-
Selenium Commands – Selenese Selenese commands can have up to a maximum of two parameters: target and value. Parameters are not required al...
-
Locating GUI Elements Locating elements in WebDriver is done by using the “findElement(By. locator ())” method. The “locator” part of the co...
-
Answer 75 : If you want to see all options available while starting Selenium server then you should use option “-h” while starting Seleni...
-
Answer 24 : CSS location strategy can be used with Selenium to locate elements, it works using cascade style sheet location methods in wh...
-
Answer 44 : You can change default behavior of Selenium IDE > element locator preference by crating JS file with following– Locato...
-
Answer 54 : Selenium core is the core JS engine of Selenium which executes tests on browser, but because of same origin policy it needs t...
-
Answer 48 : Use pause command which takes time in milliseconds and would pause test execution for specified time – pause ( waitTime )...
-
Answer 69 : You can use Selenium RC on any system which is capable I running Java. Hence you can use Selenium RC on MAC and UNIX machines...
-
Answer 27 : You can use “store” command to achieve this. You can save result of an evaluation in a variable and use it later in your Sele...
Shaik. Powered by Blogger.
0 comments:
Post a Comment