sendKeys not working with Selenium IDE 2.9.0

91 views
Skip to first unread message

sujinyan

unread,
Jun 10, 2015, 6:52:41 AM6/10/15
to seleniu...@googlegroups.com
Hi.

I've got some pretty simple code (running with Selenium IDE 2.9.0), with which I'm trying to login to a site:

<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">tp_func_001</td></tr>
</thead><tbody>
<tr>
    <td>open</td>
    <td>bui</td>
    <td></td>
</tr>
<tr>
    <td>waitForElementPresent</td>
    <td>id=login_username</td>
    <td></td>
</tr>
<tr>
    <td>pause</td>
    <td>3000</td>
    <td></td>
</tr>
<tr>
    <td>sendKeys</td>
    <td>id=login_username</td>
    <td>root</td>
</tr>
<tr>
    <td>pause</td>
    <td>3000</td>
    <td></td>
</tr>
<tr>
    <td>sendKeys</td>
    <td>id=login_password</td>
    <td>password</td>
</tr>
<tr>
    <td>pause</td>
    <td>3000</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>id=login_signin</td>
    <td></td>
</tr>
</tbody></table>

It **appears** to work. However, after hitting the login_signin button, it returns:

[error] Error: There was an unexpected Alert! [Must enter a password.]

That is, for some reason, the browser (javascript/ajax) isn't actually registering the input into Username.

Any ideas?

(Same problem is occurring with Firefox ESR 31.6.0 running on Solaris and Pale Moon 25.4.1 running on Windows 7)


Thanks,

sujinyan
Reply all
Reply to author
Forward
0 new messages