import com.thoughtworks.selenium.*;
import org.openqa.selenium.server.SeleniumServer;
import org.openqa.selenium.server.RemoteControlConfiguration;
public class StartServer {
Selenium selenium;
public static final String MAX_WAIT_TIME_IN_MS="60000";
private SeleniumServer seleniumServer;
public void setUp123() throws Exception {
RemoteControlConfiguration rc = new RemoteControlConfiguration();
rc.setAvoidProxy(true);
rc.setSingleWindow(true);
rc.setReuseBrowserSessions(true);
seleniumServer = new SeleniumServer(rc);
selenium = new DefaultSelenium("localhost", 4444, "*firefox","http://www.yahoo.com");
seleniumServer.start();
selenium.start();
}
public static void main(String[] args) throws Exception {
StartServer c = new StartServer();
c.setUp123();
}
}
Pages
- Home
- Starting Selenium server By using program in Selenium RC
- Working With Properties file using java
- Handle SSL certificate issue in Selenium / firefox
- Runing test script in multiple browsers using WebDriver
- Locate an element which have same name and same atrributes in selenium
- How to make selenium to wait for an element every second
- Selenium Resource
- KeyEvents in Selenium
- How to speedup selenium scripts in firefox
- Reusable Script In Selenium
- DriverScript and Execute_testcases
- TestNg
- Robot Class
- Getting Data from web page
- DOM
- Export Result to Excel Either login pass of fail
- Export to Excel
- Dates
- Login using Excel data
- Selenium Reference Sites
- SQL Queries
No comments:
Post a Comment