mardi 13 décembre 2016

Selenium IDE selecting from the list which is powered by Google

I'm new to Selenium IDE and I need to run some test on one website. Everything seems to work just fine except the part where I need to select my location since that list is powered by Google I can't really get the object by list id.. Here's my test so far:

<tr>
    <td>open</td>
    <td>/</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=newregister-form-email</td>
    <td>javascript{&quot;test+&quot; + Math.floor(Math.random()*11111) + &quot;@gmail.com&quot;;}</td>
</tr>
<tr>
    <td>type</td>
    <td>id=newregister-form-pass</td>
    <td>test</td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>css=input.submitLogin</td>
    <td></td>
</tr>
<tr>
    <td>waitForPageToLoad(1000)</td>
    <td></td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=u_users-form-name</td>
    <td>Tester</td>
</tr>
<tr>
    <td>type</td>
    <td>id=u_users-form-surname</td>
    <td>Test</td>
</tr>
<tr>
    <td>type</td>
    <td>id=u_users-form-phone</td>
    <td>javascript{&quot;+3706&quot; + Math.floor(Math.random()*11111);}</td>
</tr>
<tr>
    <td>type</td>
    <td>id=cityinput</td>
    <td>Vilnius</td>
</tr>
<tr>
    <td>pause</td>
    <td>1000</td>
    <td></td>
</tr>
<tr>
    <td>type</td>
    <td>id=cityinput</td>
    <td>Vilnius</td>
$</tr>

The last part is where I need to choose from the dropdown list but Selenium IDE doesn't see it when recording.

Thank you in advance

Aucun commentaire:

Enregistrer un commentaire