Problem clicking with an HTML app [message #1467986] |
Mon, 10 November 2014 13:31 |
Dave Ball Messages: 11 Registered: November 2014 |
Junior Member |
|
|
I'm evaluating jubula for use with a Vaadin web app. I've got a few test cases working, but none of the "click" actions seem to do anything. I'm seeing this in Chrome, Firefox - so hopefully it's something I'm doing silly!
For example, with the attached test case.
the login button is selected, and the click action is marked as "suceeded", but the click isn't passed to the application. If I add another step to simulate pressing ENTER, this additional step DOES trigger the button.
From reading online, I thought this might be related to how webdriver executes click actions within the browser, and I wrote a simple WebDriver test case to check this:
// WebDriver driver = new FirefoxDriver();
WebDriver driver = new ChromeDriver();
driver.get("localhost:8080");
new WebDriverWait(driver, 10).until(ExpectedConditions.presenceOfElementLocated(By.id("username"))).sendKeys("su");
driver.findElement(By.id("password")).sendKeys("password");
driver.findElement(By.id("loginButton")).click();
however this works fine where I've tried it (both firefox and chrome), so I'm a bit stumped.
Am I doing something wrong?
Many thanks,
Dave
[edit: we have other difficulties in IE, but clicking is OK in IE]
[Updated on: Wed, 26 November 2014 10:24] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03885 seconds