Skip to content
Advertisement

Tag: selenium

Text is not printed when using selenium

This is the code I have written so far: This doesn’t print out the price, please help. This is what the output terminal looks like. I want to get this price: Answer The value of the price is blank. You should replace the tailing span[1] with span[2] in your xpath Here is the code – Output –

When using Pool.map from integrated Python’s multiprocessing, program works slower and slower

Here is a similar question Why does python multiprocessing script slow down after a while? Sample of code that uses Pool: After few iterations the program slows down and finally it becomes even slower than without multiprocessing. Maybe the problem is that the function related to Selenium? Here is full code: Answer You are creating 6 processes to process 14

How to scrape the login website using selenium

I am trying to scrape data but first Click on Language, select English, then click advanced search but they will give me error these is website https://www.counselingcalifornia.com/Find-a-Therapist Answer The reason is iframe. language drop down is in iframe. In Selenium automation, if the webelements are wrapped inside an iframe, we should always switch to iframe first then we can interact

Selenium with Python not able to fully open the website

I have tried the following code and tried to open the website as mentioned: The website opens with the Chrome Browser but not with the Selenium using Python. Please let me know what should I do to open the website completely. Answer You can run it with chrome options. I am able to launch your application with below code: output:

Selenium Python Checkbox Click

I am trying to access the following HTML checkbox for a button click: using: but keep getting error: what might be the element path I am looking for in order to select the checkbox? Answer Your xpath is most likely incorrect – you need to enter // before the element as this will find all (single slash / will work

Advertisement