I am very new to the world of QA and selenium. I have been trying to create a number of tests to run and cannot seem to get the commands to work properly on one specific drop down. When I execute the commands individually I am able to get the command in question to input a value correctly and then move onto the next command. This has been fairly frustrating because an error will appear that states that the id I am specifying does not exist but when I execute the command by itself, it the value populates. Also the element ID does indeed exist in DOM.
The id in question is name=braintree_basic[cc_type].
I'm starting to think that there is a lag time with something loading.
Thanks.
<?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://kolin.test.chalkfly.com" />
<title>New Test</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">New Test</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>http://chalkfly.com/</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=search</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=search</td>
<td>red pen</td>
</tr>
<tr>
<td>click</td>
<td>css=button.btn-cart.btn</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Checkout</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>xpath=(//button[@type='button'])[3]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=login:guest</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>id=onepage-guest-register-button</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=billing:firstname</td>
<td>john</td>
</tr>
<tr>
<td>type</td>
<td>id=billing:lastname</td>
<td>doe</td>
</tr>
<tr>
<td>type</td>
<td>id=billing:email</td>
<td>[email protected]</td>
</tr>
<tr>
<td>type</td>
<td>id=billing:street1</td>
<td>123 fake street</td>
</tr>
<tr>
<td>type</td>
<td>id=billing:city</td>
<td>detroit</td>
</tr>
<tr>
<td>select</td>
<td>id=billing:region_id</td>
<td>label=Michigan</td>
</tr>
<tr>
<td>type</td>
<td>id=billing:postcode</td>
<td>48348</td>
</tr>
<tr>
<td>type</td>
<td>id=billing:telephone</td>
<td>248.123.3456</td>
</tr>
<tr>
<td>click</td>
<td>css=#billing-buttons-container > button.button</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>css=#shipping-method-buttons-container > button.button</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>id=cc_type_braintree_basic</td>
<td>label=Visa</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>name=form_submit</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>id=cc_number_braintree_basic</td>
<td>4111111111111111</td>
</tr>
<tr>
<td>select</td>
<td>id=cc_expiration_month_braintree_basic</td>
<td>label=03 - March</td>
</tr>
<tr>
<td>select</td>
<td>id=cc_expiration_year_braintree_basic</td>
<td>label=2016</td>
</tr>
<tr>
<td>type</td>
<td>id=cc_cvn_braintree_basic</td>
<td>123</td>
</tr>
</tbody></table>
</body>
</html>