Category: automation

Mousewheel prevent body scroll on modal 0

Mousewheel prevent body scroll on modal

Solution #1   // prevent background of modal from scrolling   // DOMMouseScroll for Firefox equivalent   $(document).on("mousewheel DOMMouseScroll", ".modal-backdrop, .modal-body", function(event) {     event.stopPropagation();     event.preventDefault();   });   // prevent background of...

Selenium with Python 0

Selenium with Python

Debugging Use something like http://www.pyzo.org/pyzo_intro.html Documentation http://selenium-python.readthedocs.io/api.html?highlight=phantom#module-selenium.webdriver.remote.webdriver Find Selenium Version $> python >>> import selenium >>> help (selenium) (...) DATA __version__ = '3.8.0' VERSION 3.8.0 Installation Get PhantomJS binary and put it on path Get...

Ghost process after running PhantomJS 0

Ghost process after running PhantomJS

Spooky !   Short term solution $> ps -ef | grep phantom | grep -v grep | awk '{print $2}' | xargs kill -9   Better long-term solution Using driver.quit() : driver = webdriver.PhantomJS(service_args=['--ignore-ssl-errors=true', '--ssl-protocol=any']) driver.get('https://'...

How to install and use a BrowserShots server ! 0

How to install and use a BrowserShots server !

What will this page do for you Install browsershots locally (called shotserver) Install a screen shot factory (called shotfactory) Instructions instructions were tested in linux debian with these versions : Python 2.7.3 Django 1.6.7...