Hello all I am using webdriver so if I want to use selenium;s rc function isElementPresent I have to emulate selenium rc so I do something like this:
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverBackedSelenium;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class new {
private static void one_sec() {
Thread.sleep(4000);
}
public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
driver.get(something1);
Selenium selenium = new WebDriverBackedSelenium(driver, something1);
selenium.click("//html...");
one_sec();
System.out.println(selenium.isElementPresent("text"));
WebDriver driverInstance = ((WebDriverBackedSelenium) selenium).getWrappedDriver();
...
}
and I always get false as result of isElementPresent and of course element "text" is on the web (which is using GWT).