ed bryak
unread,Sep 5, 2008, 3:30:59 PM9/5/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to selenium-users...@googlegroups.com
Hi, I am a new user to selenium and I am running into problems when I am trying to use verifyTextPresent in a test suite. I am running firefox 3.0 and the latest version of Selenium IDE beta.
In the example below, the code runs perfectly and all of the "verifyTextPresent" sections return true:
<tr>\\ <td>open</td>\\ <td>/home_frames.htm</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>selectFrame</td>\\ <td>topFrame</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>select</td>\\ <td>how</td>\\ <td>label=TESTAPP</td>\\ </tr>\\ <tr>\\ <td>selectFrame</td>\\ <td>relative=up</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>selectFrame</td>\\ <td>bottomFrame</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>type</td>\\ <td>userId</td>\\ <td>USERNAME</td>\\ </tr>\\ <tr>\\ <td>type</td>\\ <td>password</td>\\ <td>PASSWORD</td>\\ </tr>\\ <tr>\\ <td>clickAndWait</td>\\ <td>LoginButton</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>clickAndWait</td>\\ <td>//input[@value='Order Parts']</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>type</td>\\ <td>newQty</td>\\ <td>1</td>\\ </tr>\\ <tr>\\ <td>type</td>\\ <td>newPartNum</td>\\ <td>1234567</td>\\ </tr>\\ <tr>\\ <td>clickAndWait</td>\\ <td>update</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>selectWindow</td>\\ <td>name=bottomFrame</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>verifyTextPresent</td>\\ <td>PARTNAME</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>click</td>\\ <td>//div[@id='bottomSubmitDiv']/div[3]/input[2]</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>click</td>\\ <td>deliveryPreference</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>verifyTextPresent</td>\\ <td>Pick Up Order</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>verifyTextPresent</td>\\ <td>Ship Order</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>click</td>\\ <td>//input[@name='actionName' and @value='Next']</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>assertAlert</td>\\ <td>Purchase Order Number is required.</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>type</td>\\ <td>purchaseOrderNumber</td>\\ <td>test</td>\\ </tr>\\ <tr>\\ <td>select</td>\\ <td>ShipViaSelection</td>\\ <td>label=Waiting</td>\\ </tr>\\ <tr>\\ <td>clickAndWait</td>\\ <td>//input[@name='actionName' and @value='Next']</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>verifyTextPresent</td>\\ <td>Welcome</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>clickAndWait</td>\\ <td>//input[@name='actionName' and @value='Place Order']</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>verifyTextPresent</td>\\ <td>Order Number:</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>verifyTextPresent</td>\\ <td>ORDER CONFIRMATION</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>clickAndWait</td>\\ <td>//input[@name='actionName' and @value='New Order']</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td></td>\\ <td></td>\\ <td></td>\\ </tr>
However, when I break it up into a suite with a login test script and a part ordering test script (just after the <td>clickAndWait</td> <td>LoginButton</td>), the "verifyTextPresent" sections return false. I make no changes to the code when I do this and everything else works normally. Can anyone help with this? Seperating out my scripts into different sections will help greatly with maintenence in the future.