I use Watir to fetch data where I don’t need the images that need to be uploaded. Can I block them?
Disable the image display in the Watir browser manually, and then run the Watir script. As far as I know, you cannot do this from Vatir himself.
I think it could be:
profile = Selenium::WebDriver::Chrome::Profile.new profile['webkit.webprefs.loads_images_automatically'] = false @browser = Watir::Browser.new :chrome, :profile => profile
See: http://watir.imtqy.com/docs/chrome/
prefs = { :profile => { :managed_default_content_settings => { :images => 2 } } } b = Watir::Browser.new :chrome, :prefs => prefs
Source: https://habr.com/ru/post/1757627/More articles:Display Wordpress Messages on Two Pages - loopsRemove unwanted JavaScript with JavaScript - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1757624/how-to-convertproject-4d-coordinates-to-3d-coordinates&usg=ALkJrhiX-oUTWuj33wAlPyf3TcRYoiCHVAC # Deleting Files - c #How can I prevent a direct url call in an ASP.NET/IIS environment? - .netShould I use the "Remove Module" menu? - drupalHow to avoid globals in C? - cSilverlight для разработчиков или дизайнеров? - c#Найти и заменить уравнения (регулярное выражение?) - c#Download file using HTTP address in Java - javaAll Articles