SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Oct 2008
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Ruby script to click on button coded using <map>

    I am new to Ruby and am trying to automate some of the manual testing done here using Watir.
    I have to write ruby script to click on a button and am basically stuck there. The issue is the button is coded using &lt;map. &lt;area&gt; tag. I searched online but could not find how to code this. I tried few things of my own, but did not work
    code looks like this
    &lt;map name="abc"&gt;
    &lt;area shape="rect" coords="456,5,555,25" alt="click me" ......
    onclick='executethis()"&gt;
    &lt;/map&gt;
    Any experienced people body out here who can help me find a solution? Thanks

  2. #2
    Junior Member
    Join Date
    Nov 2008
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Ruby script to click on button coded using <map>

    hi.....

    I saw ur query .......

    For button, try out these code.......

    ie.image(:alt, "the image/button name").click
    or
    ie.button(:name, "the image/button name").click
    or
    ie.link(:text, "the image/button name").click

    Try these code and revert me back...... Have a nice day.....

  3. #3
    Junior Member
    Join Date
    Oct 2008
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Ruby script to click on button coded using <ma

    friend4you,
    Thank you for responding to my query.

    i had tried those combinations and none of them had worked for me.
    I got a solution which tuend out to be simple. When i tried
    ie.area(:alt,"click me").click it started working.


    Even ie.map(:name,"abc").click does not work.

  4. #4
    Junior Member
    Join Date
    Nov 2008
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Ruby script to click on button coded using <ma

    Hi pumpkinpie ...

    I do have one query..... Kindly help me out..... I'm using Firewatir in Firefox

    I'm unable to upload the file using the script:

    ie.file_field(:id, 'picture').click

    but it just clicking the text box but not opening the fileupload window...... Can u help me out with this issue.....

 

 

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 11:54 PM.

Copyright BetaSoft Inc.