Skip to content
Advertisement

Tag: selenium

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

Run Multiple Instances of ChromeDriver

Using selenium and python I have several tests that need to run in parallel. To avoid using the same browser I added the parameter of using a specific profile directory and user data (see below). The problem is that I cannot run them simultaneously, one test needs to wait for the other to finish. Otherwise I get the following error

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

Passing cookies while logging in

I would like to integrate python Selenium and Requests modules to authenticate on a website. I am using the following code: The problem is that when I enter the browser the login authentication is still there when I try to access the url even though I passed the cookies generated from the requests session. How can I modify the code

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