watir - Can you change the browser profile in Ruby WQatir / Selenium mid-stream? -


i know can set special profile designating myprofile , saying

browser = watir::browser.new :firefox, :profile => myprofile 

but possible declare

browser = watir:browser.new :firefox 

to start out test standard profile , switch myprofile later? syntax that?

can define scenario ? because, had done profile related things, had not need change profile later. had set profile @ beginning of file tell firefox not appear it's download prompt dialog box, download file @ told destination.

so, interesting know why trying change profile later.


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -