SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2

Thread: Suggestions

  1. #1
    Member
    Join Date
    Feb 2004
    Posts
    50
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Suggestions

    HI all,

    i am trying to automate a test case which requires me to check a particular checkbox based on the search result text returned.

    Only relation that they share is that the search resuly & the checkbox are in the same row, but there is no way i can check the checkbox which falls near to the text i am looking for.

    any suggestion as 2 how do i go abt automating this?

    REgards
    MTSILK

  2. #2
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Suggestions

    I had a similar situation not so long ago where based on the text in a table row (random row, could be anywhere) I needed to click on an object several columns to the left on the same row.

    The way I solved this was to look at ALL the HtmlText and match it to my target text. Hmm, I'm not explaining this very well...

    Okay, I walked the page, and if MyPage.HtmlText("#{i}").Exists() && if MyPage.HtmlText("#{i}").GetText() == {The String I expect} then I knew the object I needed to click would be on that same row in the expected column to the left of where I found my text.

    The specifics of your situation are going to be a bit different, but you know that your checkbox will be on the same row as your text. So you should be able to say for i = 1 to iRowCount and look for your text on each row, thus enabling you to deal with one row at a time.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 07:51 PM.

Copyright BetaSoft Inc.