I am trying the following code when browser is ie
if @browserType == "ie"
@browser = Watir::Browser.new 'ie'
else
@browser = Watir::Browser.new @browserType, :profile => profile
end
end
on_page(LoginPage) do |page|
page.navigate_to $url
sleep 7
if @browserType == "ie"
p "....skipping security certificate for ie "
@browser.goto("javascript:document.getElementById('overridelink').click()")
@browser.driver.wait_until(@browser.driver.browser.switch_to.alert.dismiss)
@browser.alert.ok
p "....not stuck "
end
p "skipped Security"
if @browser.alert.exists?
p @browser.alert.text
p 'accepting alert dialog temporarily'
@browser.alert.ok
#@browser.driver.wait_until(@browser.driver.browser.switch_to.alert.dismiss)
#@browser.driver.switch_to.alert.accept
end
sleep 10
page.login_with @pc_server['app_username'], @pc_server['app_password']
sleep 20
WATIR version is
watir (4.0.0 x86-mingw32)
watir-classic (3.2.0)
watir-webdriver (0.6.1, 0.5.5)
Regards,
Reshma
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]