Can you share the page being accessed or is it on an intranet site?

Regards,
Tim

On Feb 17, 5:41 am, xguarder <shams...@gmail.com> wrote:
> I just started using watir-webdriver, and was able to make it work
> well with Firefox. I am running into some problems on Chrome though
> (all on Mac OSX). Here is what I am observing.
>
> I type the following into irb, and all is good so far...
>
> irb(main):001:0> require 'rubygems'
> => true
> irb(main):002:0> require 'watir-webdriver'
> => true
> irb(main):003:0> $browser = Watir::Browser.new(:chrome)
> => #<Watir::Browser:0x1016e7a88 url="" title="">
>
> After the 3rd step a Chrome session is launched, with a message
> stating "ChromeDriver server started and connected. Please leave this
> tab open."
>
> Now, I go to my company's page...
>
> irb(main):004:0> $browser.goto("http://www.whatever.com";)
> => "http://www.whatever.com/";
>
> A new tab is opened that has loaded the page. However, if I do a
> $browser.text, I am told
> "Selenium::WebDriver::Error::NoSuchElementError: Was not on a page, so
> could not find elements ".
> This does not happen on other sites like google or ebay. And I do not
> have this problem when using Firefox. Is there any known issues with
> Chrome being able to interact with certain types of pages?
>
> Thanks in advance!

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

Reply via email to