Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
2.9k views
by The go-to Tester (232 points)
retagged by
What are the four parameter you have to pass in Selenium? Please help to show some ways!
by The go-to Tester (181 points)
Parameter as in what? Are you asking about DesiredCapabilities?

1 Answer

0 like 0 dislike
by Master (1.2k points)

If you are talking about the DesiredCapability for RemoteWebDriver, these are the basic parameters we pass on to the WebDriver.

  1. Browser Name
  2. Operating System
  3. Browser Version
  4. Operating System version
Below is the code to execute your test on the IE browser for windows 8.

DesiredCapabilities capability = DesiredCapabilities.internetExplorer();
capability.setPlatform("WINDOWS_8");
capability.setVersion("9.0.4");
WebDriver driver = new RemoteWebDriver(new URL(hubURL), capability);

All these capabilities are not really mandatory based on your Grid setup. Check with your network system team to understand your Grid setup and choose your capabilities accordingly.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...