Hi all,
I am using selenium Rc with Ruby, i need to maximize the browser window.
I have tried the selenium method- Windowmaximize, but it is not working.
Also, i have to take the screenshots of the falied steps, can anyone
tell me what is the method or tool that can be used with ruby + selenium
RC.
Thanks in advance.
regards
Niranjan
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.
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.