Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Finding and Verifying Text in a Table that is in no particular order

View previous topic View next topic Go down

Finding and Verifying Text in a Table that is in no particular order

Post by Tazzin on Sat Apr 12, 2014 1:50 am

Ok, please note I'm no expert on Selenium IDE but have managed to get around ok with it.  First off let me say that the VerifyTextPresent function WOULD have worked perfect for what I wanted, BUT as it stand someone decided to depreciate that function.  (bad move).  Any how, there is a  'rule name' that is created by a user in a web site and multiple rule names can be created..  When the page loads for the all the rules, I want to validate that the rule name exists.  The verifyTextPresent would have done this for a page scan but again, it's depreciated and not usable.  SO, how can I search the page for the text I want to search for?  Please note, that I cannot use a specific 'row' in the search as the value could be in any row based on new rules added or current rules deleted.. I could be the first row in the middle of the table or at the end..  

If anyone has any ideas.. PLEASE BE EXPLICIT on the step to add to Selenium IDE.. If you give instructions that leaves out information, I'll be replying back for more information.. Again, Thanks in advance.  

Attached is a screen shot of what i'm wanting to search for, i hope it is enough.. 

Additional notation.  The reason I want to validate the text exist is because I'm going to add GOTOIF statement to skip the addition of adding the rule if the rule name already exists and move on the next check.  Again, Thanks in advance.  

Example below:  I want to find "~ Perf S107 user Order Hold"

div id="page"
div id="header" class="clearfix"
span
div id="content" class="clearfix"
div id="content_primary_wrap"
div id="content_primary"
ul id="nav_primary" class="clearfix"
div id="global-messaging"
div id="ctl00_PlaceHolderMain_PageContent1__ControlWrapper_RichHtmlField" style="display:inline"/div
div id="Top" class="AspNet-WebPartZone-Vertical"
div id="ctl00_PlaceHolderMain_PageContent2__ControlWrapper_RichHtmlField" style="display:inline"/div
div id="Middle" class="AspNet-WebPartZone-Vertical"
div class="AspNet-WebPart"
div id="ctl00_ctl00_BusinessRulesListContentPOE_1"
div id="ctl00_ctl00_BusinessRulesListContentPOE_1_WebPartContainer"
div id="ae1a2e51b-d92f-4321-abc4-7b631967040b" class="admin-section rules-section"
fieldset class="actions title-bar"
table id="rules-table" class="data-table rules heavy-bottom" cellspacing="0"
caption Current Rules /caption
colgroup
thead
tbody
tr
td class="select first-child"
td class="rule"~ Perf S107 Passport EDI File Order Hold/td
tdHold Order/td
td class="status active"Active/td
td4/11/2014/td
td class="edit last-child"
/tr
tr class="alt"
td class="select first-child"
td class="rule"~ Perf S107 user Order Hold/td
tdHold Order/td
td class="status active"Active/td
td4/11/2014/td
td class="edit last-child"
/tr
tr
tr class="alt"
tr
tr class="alt"


Thanks
Tazzin

Tazzin

Posts : 1
Join date : 2014-04-12

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum