Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>5minutes manual.getting started with selenium .see <a href="http://code.google.com/p/selenium/wiki/GettingStarted" rel="nofollow noreferrer">here</a></p> <p>about setting up IE driver you can get <a href="https://stackoverflow.com/questions/7278340/selenium-web-driver-internetexplorerdriver-nosuchelementexception">here</a></p> <p>common idea of setting up IDE for selenium tests: 1) i use IDEA + maven 2) so you simply create maven project + add appropriate dependency in local pom file:</p> <pre><code>&lt;dependency&gt; </code></pre> <p>org.seleniumhq.selenium selenium-java 2.24.1 </p> <p>then maven automatically suggest autoimport of all the needed. Then you can simply pass you code you generated by selenium IDE in approptiate java file(e.g):</p> <pre><code>import com.thoughtworks.selenium.SeleneseTestBase; import org.junit.After; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import java.util.concurrent.TimeUnit; public class HomePageTest extends SeleneseTestBase{ static WebDriver driver; @Before public void openFirefox(){ driver = new FirefoxDriver(); driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); } @Test public void testHomePage(){ driver.get("https://www.google.by/"); WebElement search = driver.findElement(By.xpath("//*[@id=\"gbqfq\"]")); search.sendKeys("laptop"); search.submit(); } @After public void closeFirefox(){ // driver.quit(); } } </code></pre> <p>And run the test. enjoy)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload