From: Niranjan Nir Date: 2010-11-10T20:43:55+09:00 Subject: Re: Selenium RC-windowMaximize Thanks a lot Anton.... Window_maximize works well with selenium::seleniumDriver But the Capture_ScreenShot doesnt work with this driver. I need to intall the selenium-client gem to work with Selenium::Client driver. regards Niranjan Anton Shchankin wrote in post #960080: > Hi. I am using selenium-rc 1.0.3 with ruby through selenium-client > 1.2.18 gem (+ cucumber :)). > window_maximize (Selenium::Client::GeneratedDriver) works fine. > > def initialize(args={}) > args = { > :host => "host.com", :port => 4444, > :browser => "*chrome", :branch => "trunk" > }.merge args > > @sel = Selenium::Client::Driver.new \ > :host => args[:host], > :port => args[:port], > :browser => args[:browser], > :url => "http://#{args[:branch]}", > :timeout_in_second => 60, > :javascript_framework => :prototype > @sel.start_new_browser_session > @sel.window_maximize > end > > Also Selenium::Client::GeneratedDriver contain methods for capturing > screens. -- Posted via http://www.ruby-forum.com/.