Skip to main content

All Questions

0 votes
1 answer
52 views

Controlling a Selenium WebDriver with Keypresses in Python

I'm working on a Python script using Selenium to automate tasks on a website. In my script, I have a loop that performs various actions on the web page, such as checking inputs and clicking buttons. ...
Ewan's user avatar
  • 1
0 votes
1 answer
132 views

Threads aren't joined in multithreading (Python)

So I have some simple code that is using multithreading. It's working just fine however I'm noticing that the threads aren't being destroyed after returning the values since everytime the script runs, ...
alex's user avatar
  • 154
1 vote
0 answers
46 views

threading cannot handle the following tasks

i tried to create a threading to login with a lot of usage, using python Threading, but I got a little error, my code can't handle the following task, I have 10 users, and run threading with threading,...
OSCAR A's user avatar
  • 11
0 votes
0 answers
538 views

Selenium browser interference when using ThreadPoolExecutor

apologies if this code has become convoluted. I don't have much experience with threading and I've been throwing everything at the wall to see what sticks. My goal is to run two parallel instances of ...
frumsky's user avatar
  • 49
1 vote
0 answers
26 views

Python Selenium Multithread Add Values From Each Thread Together

First of all idk if this is a duplicate question. I'm sorry if it is. But here is my problem. I'm multi-threading and I want to add 2 values from each thread together. Here is my code for reference ...
Wayne Gan's user avatar
1 vote
1 answer
237 views

How to Multithread this task in Python?

currently I'm working on a Whatsapp bot. He's working perfect, but now I wanted to expand him with threads. Unfortunately, something is not working. I watched many videos to find a solution however I ...
user avatar
1 vote
0 answers
222 views

Optimise threading with selenium

My Aim: I use a for loop to run multiple selenium scripts threads. These scripts are all the same, and follow basic selenium principles clicking a button sending text to text boxes waiting for ...
coderoftheday's user avatar
0 votes
1 answer
414 views

Multithreading / Multiprocessing in Selenium

I wrote a python script that scrapes the urls from a text file and prints out the href from an element. However my goal here is to make it faster being able to do it on a larger scale with ...
request's user avatar
  • 530
0 votes
1 answer
3k views

How to execute a multithreaded selenium program in python?

I'd like to execute the following code using a multithreaded solution Can anyone suggest how to improve the solution? from selenium import webdriver with open('proxy.txt', 'r') as f: for line ...
mark contira's user avatar
7 votes
2 answers
21k views

Running pytest with thread

I have a question for pytest I would like to run same pytest script with multiple threads. But,i am not sure how to create and run thread which is passing more than one param. (And running thread ...
NBB's user avatar
  • 147
0 votes
1 answer
3k views

How to use Multiprocessing with Selenium in Python

I am trying to use multiprocessing using selenium in python. My code is as follows: from selenium import webdriver from multiprocessing import Pool import xlwings as xw driver = webdriver.Chrome('...
West's user avatar
  • 2,570
0 votes
0 answers
1k views

Multitasking selenium to scrape data instantly to reduce time complexity python (Asynchronous Tasking)

Below given is a sample program to call selenium process again and again. please help me to learn how can i perform multiprocessing/multithreading (multitasking). urls= [consider 10 urls] def ...
Dinu Duke's user avatar
  • 185
13 votes
2 answers
29k views

Multi-threading in selenium python

I am working on a project which needs bit automation and web-scraping for which I am using Selenium and BeautifulSoup (python2.7). I want to open only one instance of a web browser and login to a ...
SUMEET DEWANGAN's user avatar