splinter-examples icon indicating copy to clipboard operation
splinter-examples copied to clipboard

Disabling images with splinter firefox browser

Open bondeanikets opened this issue 8 years ago • 1 comments

Could you add code for disabling images with splinter firefox browser?

I am doing this:

browser = Browser('firefox', profile_preferences=proxy_settings) path = #Given the path browser.visit(path) soup = BeautifulSoup(browser.html, 'html.parser')

For faster performance, I want to load pages by disabling the images. I tried editing the "permissions.default.image" parameter to 2 in "about:config" of firefox, but it resets everytime firefox is under remote control.

TL;DR: How do I pass "permissions.default.image" in splinter.browser.visit() request?

Thanks

bondeanikets avatar Feb 02 '18 02:02 bondeanikets

Any updates yet?

bondeanikets avatar Feb 28 '18 16:02 bondeanikets