Skip to content
Advertisement

Tag: selenium-webdriver

Reducing size of pyinstaller exe

I have a simple pandas pyinstaller exe which is over 40MB. My exe example: 40MB+ for this seems a bit overkill. How can I reduce this as much as possible? One method: This however is not practical considering how big the exclusion list would be. How do I select a folder for pyinstaller to get modules from and exclude everything

How to configure ChromeDriver to initiate Chrome browser in Headless mode through Selenium?

I’m working on a python script to web-scrape and have gone down the path of using Chromedriver as one of the packages. I would like this to operate in the background without any pop-up windows. I’m using the option ‘headless’ on chromedriver and it seems to do the job in terms of not showing the browser window, however, I still

ModuleNotFoundError: No module named ‘selenium’

I get an error while running this selenium script. Please suggest what can be done to fix this: Script: Error: Traceback (most recent call last): File “C:/Users/admin/Desktop/test2.py”, line 2, in from selenium import webdriver ModuleNotFoundError: No module named ‘selenium’ I have installed Python 3.6 on win 7 Professional 32 bit. I have Selenium Standalone Server version 3.4.0(link) Answer Try installing

Scroll in Selenium Webdriver (Python)

Prerequisites. You need an account at Instagram to use this script. Setup a test environment: Log in, open the needed list(works correctly): Wrong scroll. How to fix this block? How to focus and scroll correctly on this page? My attempts: ============================================================= to @Moshisho : We need to focus on some element to activate it. The question is what the element

Advertisement