Skip to content

Instantly share code, notes, and snippets.

@javapriyan
Created May 29, 2014 19:53
Show Gist options
  • Save javapriyan/e0bfca45b777b6697c66 to your computer and use it in GitHub Desktop.
Save javapriyan/e0bfca45b777b6697c66 to your computer and use it in GitHub Desktop.
SeleniumTest.java
/**
* @author Selenium Monster <http://www.seleniummonster.com/>
*/
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
public class SeleniumTest {
public static void main(String args[])
{
WebDriver wd= new FirefoxDriver();
wd.get("https://addons.mozilla.org/en-US/firefox/addon/restclient/");
wd.findElement(By.xpath("//a[contains(text(),'Extensions')]")).click();
// new WebDriverWait(wd, 10).until(ExpectedConditions.presenceOfElementLocated(By.linkText("Extensions"))).click();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment