In working on my automated web app test using watir-webdriver I need to change the window size and move it on the screen.
From asking the question at StackOverFlow.com you can do this with the following commands;
browser = Watir::Browser.new(:firefox)
browser.execute_script('window.resizeTo(800,600)')
browser.execute_script('window.moveTo(0,0)')
From asking the question at StackOverFlow.com you can do this with the following commands;
browser = Watir::Browser.new(:firefox)
browser.execute_script('window.resizeTo(800,600)')
browser.execute_script('window.moveTo(0,0)')


0 comments:
Post a Comment