lib/pwn/plugins/transparent_browser.rb in pwn-0.4.610 vs lib/pwn/plugins/transparent_browser.rb in pwn-0.4.611
- old
+ new
@@ -94,11 +94,12 @@
args = []
args.push('--devtools') if with_devtools
options = Selenium::WebDriver::Firefox::Options.new(args: args, accept_insecure_certs: true)
options.profile = this_profile
- driver = Selenium::WebDriver.for(:firefox, capabilities: options)
+ # driver = Selenium::WebDriver.for(:firefox, capabilities: options)
+ driver = Selenium::WebDriver.for(:firefox, options: options)
this_browser = Watir::Browser.new(driver)
when :chrome
this_profile = Selenium::WebDriver::Chrome::Profile.new
this_profile['download.prompt_for_download'] = false
@@ -122,11 +123,12 @@
args: switches,
accept_insecure_certs: true
)
options.profile = this_profile
- driver = Selenium::WebDriver.for(:chrome, capabilities: options)
+ # driver = Selenium::WebDriver.for(:chrome, capabilities: options)
+ driver = Selenium::WebDriver.for(:chrome, options: options)
this_browser = Watir::Browser.new(driver)
when :headless, :headless_firefox
this_profile = Selenium::WebDriver::Firefox::Profile.new
@@ -179,11 +181,12 @@
end
end
options = Selenium::WebDriver::Firefox::Options.new(args: ['-headless'], accept_insecure_certs: true)
options.profile = this_profile
- driver = Selenium::WebDriver.for(:firefox, capabilities: options)
+ # driver = Selenium::WebDriver.for(:firefox, capabilities: options)
+ driver = Selenium::WebDriver.for(:firefox, options: options)
this_browser = Watir::Browser.new(driver)
when :headless_chrome
this_profile = Selenium::WebDriver::Chrome::Profile.new
this_profile['download.prompt_for_download'] = false
@@ -203,10 +206,11 @@
args: switches,
accept_insecure_certs: true
)
options.profile = this_profile
- driver = Selenium::WebDriver.for(:chrome, capabilities: options)
+ # driver = Selenium::WebDriver.for(:chrome, capabilities: options)
+ driver = Selenium::WebDriver.for(:chrome, options: options)
this_browser = Watir::Browser.new(driver)
when :rest
this_browser = RestClient
if proxy