Jump to content

Recommended Posts

Posted

Hi everybody, as title  i want to update the current capabilities of a runnning  webdriver session, is it possible ?. For example : at first i set to load images to be disabled, when running i want to update the state . This is my way but i dont think it's good

_WD_CapabilitiesAdd('args', '--blink-settings','imagesEnabled=true')
Local $sCapabilities = _WD_CapabilitiesGet()
_WD_Startup()
$sSession = _WD_CreateSession($sCapabilities)
_WD_Navigate($sSession, "https://www.autoitscript.com/site/")
_WD_DeleteSession($sSession)
_WD_CapabilitiesAdd('args', '--blink-settings','imagesEnabled=False')
$sCapabilities = _WD_CapabilitiesGet()
$sSession = _WD_CreateSession($sCapabilities)
_WD_Navigate($sSession, "https://www.autoitscript.com/site/")

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...