- Tazzin
- Posts : 1
Join date : 2014-04-12
Finding and Verifying Text in a Table that is in no particular order
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
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
- Selenium Automatically clears the text entered in text box-Dynamic Web Table(dgrid)
- How to select click on text inside div by text
- How do i get the ID or Xpath of Text from Dynamic table?
- How to get the tittle of a object (not window), bcz title holds the full text but inner text holds only 25 char of text (in RC and Webdriver)
- Verifying tab switching with Selenium FF plugin
Permissions in this forum:
You cannot reply to topics in this forum