Skip to content

Tag: selenium

Find Elements Between Div With Selenium in Python

I have the following HTML code, I want to extract Years and names, I tried everything with no success : What I want to get is : I tried the following, using xpath I got : 2019 2020 name1 name2 name3 name4 name5 name6 Answer You can get them using xpath and preceding: {‘name1’: ‘2019’, …

How to set options for chromium Edge() in Selenium?

I have been following tutorials, and I came up on Firefox, and using Options(), I could set headless mode while defining browser (browser = Firefox(options=opts)), but for Firefox only. I downloaded the driver for the new chromium Edge, but I cannot seem to set the options= keyword in Edge(). Can anyone tell …

Unable to locate text from web page using Selenium

I am trying to scrape amazon reviews for a certain product, but I am unable to locate the text for the ratings using selenium. But the same thing is easily scraped using soup. Link to page: https://www.amazon.in/BenQ-inch-Bezel-Monitor-Built/product-reviews/B073NTCT4R/ref=cm_cr_arp_d_paging_btm_next_2?ie=UTF8…

Using Tkinter, Threading and After method

im working on a selenium project using tkinter in python. I want to execute many selenium task at one time(could be up to 100), so I used threading to accomplish this goal, but I came to a problem, due to the fact that I need all individual selenium task to wait a couple seconds between instructions, I used t…