html - selenium ide can't find element unless I execute command one by one -


i using selenium ide automatise tests. after clicking on link, popup window, has div containing text. not able text in div tag, unless double click on or execute command singlely. have tried following none of them seems work:

wait 1 min; wait element present, event after 1 min of waiting. can't find element; identify popup window title, not identifying window.

however waitforpopup working, can't find element on popup.

here code

<tr> <!-- passed -->     <td>waitforelementpresent</td>     <td>//a[@id='linktopopup']</td>     <td></td> </tr> <tr> <!-- passed -->     <td>pause</td>     <td>1000</td>     <td></td> </tr> <tr> <!-- passed -->     <td>click</td>     <td>//a[@id='linktopopup']</td>     <td></td> </tr> <tr> <!-- passed -->     <td>waitforpopup</td>      <td></td>     <td>30000</td> </tr> <tr>     <td>waitforelementpresent</td>     <td>//div[@id='divhavingtext']</td><!-- can't find  element -->     <td></td> </tr> <tr>     <td>storetext</td>     <td>//div[@id='divhavingtext']</td><!-- can't find element -->     <td>mytext</td> </tr> 

<div id='divhavingtext'>     hi </div> 

does has idea on why won't find element unless double click, not when run entire test case automatically?

you can wait until alert comes, using "waitforalert" command. not waiting.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -