Hi,
I'm a new user of Robot Framework and have just run into a problem. I'm creating a test where I login to a web page and perform some actions. But I can't get the actual login procedure to work.
Now, I've managed to do it on another site, so my basic idea is right. I suspect that the structure of the page under test is the issue:
code snippet from page:
<p id="username">
<label for="username"> Username</label>
<br>
<input id="username" class="inputbox" type="text" size="18" alt="Username" name="username">
</p>
<p id="password">
<label for="passwd"> Password</label>
<br>
<input id="passwd" class="inputbox" type="password" alt="Password" size="18" name="password">
</p>
My test looks like this:
*** Settings ***
Test Teardown close browser
Library Selenium2Library
*** Test Cases ***
Test Login
open browser http://web.url.com firefox
Maximize Browser Window
Title should be Pageheader
input text username joe.bloggs
input password passwd secret
The error I get when running is:
16:47:33.813 INFO Typing text 'joe.bloggs' into text field 'username'
Entering the password works just fine, but not the username. Could it be the fact that the input id and name is identical for username (they are not for password)? If so, is there a workaround (that doesn't include changing the code on the web page)?
Thanks in advance.--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.