SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Advanced Member
    Join Date
    Oct 2010
    Location
    USA
    Posts
    578
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    DP for Image Link

    Attached a DOC with screen shots.

    Script Line= Browser("IE").Page("Systima").Image("file name:=goto_sml.gif", "index:=10").Click

    using the index value:=10 it goes through but is not clicking on it, and not too sure where is the Click operation is used!
    Attached Files Attached Files

  2. #2
    Apprentice
    Join Date
    Jul 2009
    Location
    India
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP for Image Link

    You dont need the index value. Remove the index value. In the Object Repository, index value is used becuase it not considering the file name property or any other unique property. Below should work fine.

    Browser("IE").Page("Systima").Image("file name:=goto_sml.gif").Click

    Or

    Browser("IE").Page("Systima").Image("html tag:=IMG", "index:=10").Click

    Thanks,

  3. #3
    Junior Member
    Join Date
    Feb 2010
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP for Image Link

    If u want to know whether the required image is clicking or not then you could follow the below format...

    Browser("IE").Page("Systima").Image("file name:=goto_sml.gif", "index:=10").highlight

    If the required image is getting highlighted then the referred image is the correct one [img]/images/graemlins/smile.gif[/img]

  4. #4
    Super Member QAGanesh's Avatar
    Join Date
    Sep 2010
    Posts
    1,898
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: DP for Image Link

    U could also use childobjects, iterate through each object get the file name property using getROProperty and then click on that link. But why is that index 10, do u have so many links with same file name. Try to use a unique description else.
    Thanks,
    Ganesh Iyer
    Winds of Change

 

 

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 9.68%
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 01:35 AM.

Copyright BetaSoft Inc.