Hi. Thanks for the response. I know that safariwatir is working as I have several tests using safariwatir already working. Its just this one case where trying to click a link or button via selecting the id doesn't do what I expect (highlights the link in yellow instead of actually doing the click action). This one issue is basically the only thing holding me back from making a lot of progress on my tests.
Anyone that can provide a solution please help as I would be most appreciative. Thanks again. On Oct 7, 12:13 am, karim rayani <[email protected]> wrote: > I donot know much of what you have done but for safari we need to have > safariwatir installed > > require 'rubygems' > require 'safariwatir' > > browser = Watir::Safari.new > browser.goto("http://google.com") > browser.text_field(:name, "q").set("obtiva") > browser.button(:name, "btnI").click > puts "FAILURE" unless browser.contains_text("software") > > if you could try the above script to check it things run smoothy? i > have never tried safari but this test is only to know if safariwatir > is working or not > > On 10/6/09, QAguy <[email protected]> wrote: > > > > > I am using rspec with safariwatir. When I try to have watir click a > > link for which I have an id I see the link get highlighted in yellow > > but the click action doesn't occur. Here is an example: > > > @browser.button(:id, "<ID_name>").click > > > I then tried this: > > > Watir::Element::click { @browser.button(:id, "anonymous_element_1")} > > > But this generates the following error: > > > NameError in 'Register Upgrade and upload a video flow should upload a > > video' > > uninitialized constant Watir::Element > > > I'm a newbie to watir so any help you can provide would be greatly > > appericated. > > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
