Forum Discussion
Mourasman
14 years agoNew Contributor
Hi,
Yes, I'm using the "Script Runner" and the contents of the script are these:
import java.util.concurrent.TimeUnit;
import org.junit.Assert;
import org.junit.Before;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.By;
private FirefoxDriver driver;
private String baseUrl = "http://www.somerandomsite.com";
driver = new FirefoxDriver();
driver.get(baseUrl);
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.findElement(By.xpath("//a[@href=\"consultancy.html\"]")).click();
driver.findElement(By.xpath("//a[@href=\"aboutus.html\"]")).click();
driver.findElement(By.xpath("//a[@href=\"contactus.html\"]")).click();
driver.quit();
It's this simple. Am I missing something here?
EDIT: Just want to add that this script works perfectly fine on SoapUI 4.0.1. (Running this as a "Groovy Script")
Best regards,
Mourasman
Yes, I'm using the "Script Runner" and the contents of the script are these:
import java.util.concurrent.TimeUnit;
import org.junit.Assert;
import org.junit.Before;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.By;
private FirefoxDriver driver;
private String baseUrl = "http://www.somerandomsite.com";
driver = new FirefoxDriver();
driver.get(baseUrl);
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.findElement(By.xpath("//a[@href=\"consultancy.html\"]")).click();
driver.findElement(By.xpath("//a[@href=\"aboutus.html\"]")).click();
driver.findElement(By.xpath("//a[@href=\"contactus.html\"]")).click();
driver.quit();
It's this simple. Am I missing something here?

EDIT: Just want to add that this script works perfectly fine on SoapUI 4.0.1. (Running this as a "Groovy Script")
Best regards,
Mourasman