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 05:19 Go to next message
Peter Kilian is currently offline Peter Kilian
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 06:07 Go to previous message
Peter Kilian is currently offline Peter Kilian
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 06:07]

Report message to a moderator

Previous Topic:MongoDB IDE with RAP
Next Topic:RAP to ms sql server connection problem with jdbc
Goto Forum:
  


Current Time: Thu Aug 21 06:20:18 EDT 2014

Powered by FUDForum. Page generated in 0.05910 seconds