Hi,

I am using watir the latest version but I'm still getting the error I 
mentioned in my previous post. Is there a way to resolve it? 

I have tried different headless driver like Chrome but when I run this 
code: @browser = Watir::Browser.new :chrome, headless: true 
I'm getting this error message: Net::ReadTimeout: Net::ReadTimeout



On Friday, 15 December 2017 17:38:21 UTC, Titus Fortner wrote:
>
> This is a very old post. watir-webdriver is deprecated in favor of the 
> latest version of Watir. Our introduction guides are here: 
> http://watir.com/guides/
>
> Let us know if you are continuing to have difficulties.
>
>
> On Friday, December 15, 2017 at 9:19:09 AM UTC-6, 江南 wrote:
>>
>> Hi,
>>
>> I got it to work according to your code but I am getting this error 
>> message when my script try to click on a button:
>>
>> Selenium::WebDriver::Error::UnknownError: java.lang.String cannot be cast 
>> to net.sourceforge.htmlunit.corejs.javascript.Function 
>> (java.lang.ClassCastException)
>>
>> Are there ways to resolve my issue? 
>>
>> On Thursday, 19 April 2012 04:03:34 UTC+1, cootcraig wrote:
>>>
>>>
>>> I followed the example in this blog: 
>>>
>>> http://watirmelon.com/2010/12/14/watir-webdriver-a-detailed-introduction/ 
>>> I grabbed the selenium-server-standalone jar and put in my app folder 
>>>
>>> # This is working on Windows/JRuby! 
>>>
>>> require "rubygems" 
>>> require "bundler/setup" 
>>>
>>> require "watir-webdriver" 
>>> require 'selenium/server' 
>>>
>>> server = Selenium::Server.new("selenium-server- 
>>> standalone-2.0b1.jar", :background => true) 
>>> server.start 
>>>
>>> include Selenium 
>>> capabilities = 
>>> WebDriver::Remote::Capabilities.htmlunit(:javascript_enabled => true) 
>>> b = Watir::Browser.new(:remote, :url => 'http://127.0.0.1:4444/wd/ 
>>> hub', :desired_capabilities => capabilities) 
>>>
>>> # Browser fun here 
>>>
>>> b.close 
>>> server.stop 
>>>
>>

-- 
-- 
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

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to