Selenium IDE Code for Answer On Next Prompt

<?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”&gt;
<html xmlns=”http://www.w3.org/1999/xhtml&#8221; xml:lang=”en” lang=”en”>
<head profile=”http://selenium-ide.openqa.org/profiles/test-case”&gt;
<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
<link rel=”selenium.base” href=”” />
<title>answerOnNextPrompt</title>
</head>
<body>
<table cellpadding=”1″ cellspacing=”1″ border=”1″>
<thead>
<tr><td rowspan=”1″ colspan=”3″>answerOnNextPrompt</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>file:///D:/Selenium/seleniumIDE/Ex2.html</td>
<td></td>
</tr>
<tr>
<td>store</td>
<td>suresh</td>
<td>name</td>
</tr>
<tr>
<td>echo</td>
<td>${name}</td>
<td></td>
</tr>
<tr>
<td>answerOnNextPrompt</td>
<td>${name}</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=Click here to enter your name</td>
<td></td>
</tr>
<tr>
<td>assertPrompt</td>
<td>Please enter your name.</td>
<td></td>
</tr>
<tr>
<td>verifyText</td>
<td>id=idName</td>
<td>${name}</td>
</tr>

</tbody></table>
</body>
</html>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s