Testing a RAP application with Selenium

79 views
Skip to first unread message

Magnus

unread,
May 30, 2007, 7:40:02 AM5/30/07
to selenium-users...@googlegroups.com
Hi,
I'm trying to test my eclipse RAP application with Selenium. But I habe no idea how to click on a button. Buttons are not rendered as input-elements in the resulting HTML code. This is the sample application of the project: [http://rap.innoopract.com/rap]

Here is my attempt to click the "Login" button:
selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://rap.innoopract.com/rap");
selenium.start();
selenium.open("http://rap.innoopract.com/rap");
selenium.click("//DIV[DIV/text()='Login']");

The application starts and the xpath expression seems to be ok, (i get an exception, if i change it to a uncorrect one) but nothing happens (without providing a username and a password hint should appear).

Thanks in advance!
Magnus

Reply all
Reply to author
Forward
0 new messages