How many parameters can selenium commands have at the minimum?

5.0K    Asked by ParthJoshi in QA Testing , Asked on Nov 15, 2019
Answered by Parth Joshi

Four parameters which Selenium acknowledges are

Host

Port Number

Browser

URL

Host: It is the parameter which we use to tie Selenium to a particular IP. Normally, we run selenium tests on our local machine so the value will be 'localhost'. You can indicate an IP address rather than a localhost.

java -jar -host

Port Number: TCP/IP port which is utilized to associate selenium tests to the selenium network centre point. Default port hub is 4444.

java -jar -role hub -port 4444

Ensure no other application in your framework is utilizing this port. You may confront an exemption like Exception in string "main" java.net.BindException: Selenium is as of now running on port 4444. Or on the other hand some other service is.

On the off chance that this happens you can either close down the different procedure that is utilizing port 4444, or you can advise Selenium-Grid to utilize an alternate port for its centre point. Utilize the - port alternative for changing the port utilized by the centre point.

java -jar -role hub -port 4441

Browser: To pass the browser which needs to execute our selenium scripts

URL: To pass the application URL



Your Answer

Interviews

Parent Categories