I
I
IvanSstarr2019-02-14 17:49:48
PowerShell
IvanSstarr, 2019-02-14 17:49:48

Powershell+Selenium+Chrome how to disable images on a page?

How to disable images on a page when using Powershell+Selenium+Chrome?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
azarij, 2019-02-14
@IvanSstarr

$uri = "http://yandex.ru"

add-type -path C:\test\selenium\net40\WebDriver.dll
$options = New-Object OpenQA.Selenium.Chrome.ChromeOptions
$options.AddUserProfilePreference("profile.default_content_setting_values.images",2)


$driver = New-Object OpenQA.Selenium.Chrome.ChromeDriver($options)

$driver.url = $uri

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question