SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Aug 2006
    Location
    India
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Clicking a TD Object

    Hi I am new to TP. I was working till now in another automation tool which had lot of flexibility in working on TD/DIV objects. Just by using the frames.find ("innertext","value"), I could get the required ID and click on the frames.ID.webobject.click and achieve the objective.

    In the specific web application I am working lot of TD's are there which have ID's as btnText101,etc. I want to locate the TD based on innertext property. TD is part of Frame-table-div-table.

    If somebody could provide me a sample code how to achive the objective, it would be of great help. Expecting the earliest response.

    Regds

  2. #2
    Senior Member
    Join Date
    Jan 2006
    Location
    Bengaluru
    Posts
    494
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Clicking a TD Object

    Did you try the following way..
    <font class="small">Code:</font><hr /><pre> If HTMLTD("InnerText=btnText101",tpAttachNoWait).Exis ts then
    HTMLTD("InnerText=btnText101").Click
    end if
    </pre><hr />
    If it doesn't work try attaching the parent table and frame before trying this out
    Suraj

  3. #3
    Member
    Join Date
    Aug 2006
    Location
    India
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Clicking a TD Object

    Based on your suggestion, I adopted the following code
    and it worked.
    HTMLFrame("Name=NAVIGATION").Attach
    HTMLTable("ID=nav_table").Attach
    If HTMLTD("InnerText='" &amp; lc_LeftOptionVal &amp; "'" &amp; " ", tpAttachNoWait).Exists Then
    HTMLTD("InnerText='" &amp; lc_LeftOptionVal &amp; "'" &amp; " ").Click
    End If

    Thanks

 

 

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 11.54%
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 03:41 AM.

Copyright BetaSoft Inc.