In my new journey to figure out how to automate stuff in my life, one of the time-sucking adventures was to try to stop browser popups such as geolocation and notifications. I just wanted to click ‘ok’ or ‘dismiss’ and move on since this was my ‘bot’ instance of the browser. The issue with these browser-based pop ups is that…
Month: November 2019
HOW TO CLICK AN ITEM IN A SUBMENU (UL) LIST USING PYTHON, SELENIUM
I spent literally 3 days trying to simply click a logout link with Selenium. I searched every stackoverflow post I could find until I found this one. I had tried pretty much everything I could to try to click the logout link which was the fifth item down in the move-over list. I tried find_element_by_xpath, find_element_by_id, find this, find that,…
OPENING A NEW TAB WITH SELENIUM + PYTHON + FIREFOX + UBUNTU
So this was super duper hard and I believe the reason why is because technically the browser settings and the user choices impact whether or not a clicked link opens in a fresh new tab or a fresh new window. Keep that in mind in case you have other headaches. It may be impossible (so I’ve read online) to perfectly…
Overcoming Painful Setup for Selenium with Python on Ubuntu
EDIT 191118I realized that I need to execute the script below every time my computer reboots so my current workflow is to leave the command commented out in script and then run it before I begin. You can probably run it with the script too? This one: export PATH=$PATH:/home/user/path/to/browser_drivers_for_automation I had the following continual painfull errors: selenium.common.exceptions.WebDriverException: Message: ‘my_folder_name’ executable…