I’ve recorded activity on 2.9.1 with Firefox 54. When I run this activity it gives me an error.

The log of activity is

Executing: | | id=login-email | [email protected] | 

The error is

Element css=a.dropdown-toggle.user-details not found

Now the issue is, the value ([email protected]) is not inserted in login-email field. So it throws an error.

I’ve tried type, typeKeys and sendKeys commands. But nothing seems to work. What can I do to insert value?

HTML code is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://qa.******.com/" />
<title>******LoginSuccess</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">******LoginSuccess</td></tr>
</thead><tbody>
<tr>
    <td>open</td>
    <td>/</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>css=div.bannerButton &gt; div.signupBut &gt; a[title=&quot;Sign in&quot;]</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=login-email</td>
    <td>[email protected]</td>
</tr>
<tr>
    <td>type</td>
    <td>id=login-password</td>
    <td>g-g5g3F}t+</td>
</tr>
<tr>
    <td>click</td>
    <td>//div[@id='login-form']/div/div/div[3]/div/form/div[3]/button</td>
    <td></td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>link=View all users →</td>
    <td></td>
</tr>
<tr>
    <td>click</td>
    <td>link=Deactivated (42)</td>
    <td></td>
</tr>
</tbody></table>
</body>
</html>



Source link https://sqa.stackexchange.com/questions/32454/selenium-ide-type-

LEAVE A REPLY

Please enter your comment!
Please enter your name here