I have a website that only displays in a browser with Webkit support (Google Chrome, Safari). I am using Google Chrome since I am in Windows 7.
I use Watir-WebDriver to automate the same.
Problem. When I click a button in a browser window, another window launches, and the content of the clicks is displayed in a new browser window. I need a way to identify this new browser window in order to continue testing. I read in various forums, but did not get any specific answer / solution.
Q: Is there an alternative to watir :: ie.attach for watir-webdriver, since the application is not supported in Watir-Webdriver
Code example:
require "rubygems" require "watir-webdriver" require "selenium-webdriver" b = Watir::Browser.new(:chrome) website = "http://xyz.com"
source share