Try

browser.link(:text, "Start Browsing").when_present.click
browser.a(:title => "$2.52").when_present.click




________________________________
 From: Bashir Osman <[email protected]>
To: [email protected] 
Sent: Wednesday, July 24, 2013 9:08 AM
Subject: [wtr-general] Re: Help with Javascript encoded ahref
 


oops I think I may have sent you a private message:

require 'watir'
require 'watir-webdriver'

browser = Watir::Browser.new :ff
browser.goto "http://qat01.absorbcloud.com/ninja";

browser.link(:text, "Start Browsing").click
browser.a(:title => "$2.52").click

This is the code I am using, its almost idential to yours except I'm using :ff 
also a different URL but I don't think that has any affect since we are both 
automating the same page

This is the error I am currently getting:

in `assert_exists': unable to locate element, using {:text=>"Start Browsing", 
:tag_name=>"a"} (Watir::Exception::UnknownObjectException)




On Tuesday, 23 July 2013 15:40:11 UTC-6, Bashir Osman  wrote:
Hi, 
>
>
>Little background - I'm planning on using Watir for a majority of our 
>automation. Currently we use Telerik Test Studio. 
>
>
>I'm unable to click on a shopping cart link using Watir, please check the 
>attachment for the syntax as Google Chrome would not allow me to copy it into 
>Notepad. 
>
>
>This is what I am currently using:  browser.link(:title, "$2.52").click  
>
>
>
>For situations like these what should I do? 
>
>
>Thanks!
-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.
 
[email protected]
http://groups.google.com/group/watir-general
[email protected]
 
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to