Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problem with RWT standalone application and Selenium
Problem with RWT standalone application and Selenium [message #899967] Fri, 03 August 2012 09:19 Go to next message
Peter Kilian is currently offline Peter KilianFriend
Messages: 13
Registered: December 2011
Junior Member
Hi,

i try to create a Selenium Testsuite for my RWT standalone application.
Here is a part of it:

public MainPage loginValidUser(String userName, String password) {
    	webDriver.findElement(By.id(UIMap.LoginDialog_login)).findElement(By.tagName("input")) .sendKeys(userName);
    	webDriver.findElement(By.id(UIMap.LoginDialog_password)).findElement(By.tagName("input")).sendKeys(password);
    	
    	WebDriverWait wait = new WebDriverWait(webDriver, 10);
    	WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.id(UIMap.LoginDialog_loginButton)));
    	element.click();
    	
    	
    	return new MainPage(webDriver);
    }


The user name and the password are filled in the textfields, but it seems, that the click() creates no event.

Any ideas?

Best Regards
Peter
Re: Problem with RWT standalone application and Selenium [message #899976 is a reply to message #899967] Fri, 03 August 2012 10:07 Go to previous message
Peter Kilian is currently offline Peter KilianFriend
Messages: 13
Registered: December 2011
Junior Member
Hi,

i found a solution. Instead of
...
    element.click();
...


i use
...
       	new Actions(webDriver).moveToElement(element).click(element).perform();
...


Best Regards
Peter

[Updated on: Fri, 03 August 2012 10:07]

Report message to a moderator

Previous Topic:Build of client.js for RAP 1.5
Next Topic:MongoDB IDE with RAP
Goto Forum:
  


Current Time: Sat Apr 20 03:55:25 GMT 2024

Powered by FUDForum. Page generated in 0.03127 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top