Selenium Server settings


While working with selenium server first we need to setup configuration of selenium server, like on which port the server will run, Avoid proxy setting, start logs etc.

For working with Selenium server configuration, we need to perform following tasks.

1 Add selenium server jar file in build path of current project.

2 Import org.openqa.selenium.sever.RemoteControlConfiguration;

Here we have imported selenium sever Rcmote Control Configuration Class, we can need to create object of that class and then we can use methods of the class to ser remote control server configuration.


3 Create RemoteControlConfiguration object

RemoteControlConfiguration rc = new RemoteControlConfiguration();


4 Set Port 

 rc.setPort(4444);

5 Set Proxy

 rc.setAvoidProxy(true)

6 Set Browser side logs

rc.setBrowserSideLogsEnabled(true)

By this way we can set as much settings as we want in RemoteControlConfiguration


No comments :

No comments :

Post a Comment