Display results as :

Rechercher Advanced Search

Latest topics
» Run automated selenium test scripts from JIRA ondemand
Fri Dec 08, 2017 12:40 pm by azharuddin

» New! Appium Desktop
Sat Nov 25, 2017 3:51 pm by azharuddin

» Selenium WebDriver Integration
Tue Nov 21, 2017 1:06 pm by azharuddin

» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir


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"
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
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
td class="edit last-child"
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
td class="edit last-child"
tr class="alt"
tr class="alt"



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