com.thoughtworks.selenium.DefaultSelenium Java Examples
The following examples show how to use
com.thoughtworks.selenium.DefaultSelenium.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WebDriverBackedSeleniumHandlerTest.java From selenium with Apache License 2.0 | 5 votes |
@Test public void searchGoogle() { Selenium selenium = new DefaultSelenium("localhost", port, "*chrome", appServer.whereIs("/")); selenium.start(); selenium.open(pages.simpleTestPage); String text = selenium.getBodyText(); selenium.stop(); assertTrue(text.contains("More than one line of text")); }
Example #2
Source File: AbstractSeleniumTestCase.java From cloudstack with Apache License 2.0 | 4 votes |
protected static DefaultSelenium createSeleniumClient(String url) throws Exception { return new DefaultSelenium("localhost", 4444, "*firefox", url); }