Wednesday, November 19, 2014

On 1:01 AM by Unknown   No comments
Answer 75If you want to see all options available while starting Selenium server then you should use option “-h” while starting Selenium server -    
  
java -jar selenium-server.jar –h 
(It will display you all the options which you can use while starting the Selenium server.)

Answer 76You may like to create your own Firefox profile because Selenium always created a clean Firefox profile while executing the tests and none of your Firefox settings and plug-in are considered with this clean profile. If you want to execute tests on Firefox with your settings then you should create custom profile for Firefox.

To be able to execute tests on a custom Firefox profile you should specify its path while starting Selenium server. For example if your new profile is stored at “awesome location” in your directory then you should start Selenium server as following –

  java -jar selenium-server.jar -firefoxProfileTemplate   "awesome location"

Answer 77Start your Selenium Server as following – 

java -jar selenium-server.jar -log selenium.log

And Selenium would start logging server side info, i.e.

20:44:25 DEBUG [12] org.openqa.selenium.server.SeleniumDriverResourceHandler -Browser 12345/:top frame1 posted START NEW

0 comments:

Post a Comment