As to say this code works but problem that i am facing that only one url it scrape the data afterward it through an error as show below in figure help me out from this . it print only one link after it through session not created error Answer ISSUE: The issue is with the remote debugging port, you already
Tag: selenium
Python selenium: finding multiple elements with partially different names
I have a webpage full of elements that consists below example (gave 2, the webpage consists of around >10), I want to search for all of the below elements containing ‘suda-data’ and click on all of them. Howvever I am unable to define the finding of all the elements properly. Notes: a. cannot search by class=”S_txt2″ (will include elements that
Lookup ERROR while trying to log in instagram using Helium/Selenium
so i am trying to log in using the Helium package which uses selenium under the hood, i looked into its documentation, but i get a lookeup Error. can anyone help please :( Here is the github: Helium Cheatsheet Here is my code: ofc the username and password here are fake ones :) Here is the full error, i get
Python for loop not looping through all the elements? It is only taking the 1st element
I am trying to scrape the data from naukri.com, here I am trying to scrape the location details for each recruiter visible on the page. The code I am writing is : 1st I have extracted all recruiters details in list highlight_table_tag. highlight_table_tag includes all the elements on the page however the loop only takes the 0th element of my
printing same name, price,and link in BeautifulSoup python
How to Get all Product detail it prints the same things but I want others products to detail also here is the link from where I want to fetch the data of all product:https://www.nike.com/gb/w/womens-lifestyle-shoes-13jrmz5e1x6zy7ok Answer What happens? Their is a wrong indent with your print Their is only one element with class of product-grid How to fix? Check the indent
String filtering in an if function not working in Python
I am writing a webscraper that scrapes data from a list of links one after the other. The problem is that the website uses the same class names for up to 3 different buttons at once with no other unique identifiers used which to my understanding makes it impossible to point to the exact button if there are more. I
Press non-modifier key on website Selenium/Python
I want to press any keyboard key that is non-modifier key e.g. “Q”, “W”, “E” or “R”. I tried sending send_keys onto random element but it doesn’t work and selenium says that it cannot interact with that element. How can I send these keystrokes just in the website not onto specific element. Answer You can send and make key stroke
Python, Selenium | Can’t Click Test Here
Hello, I am trying to click the button ‘Test Here’ using selenium in Python via chrome. I have no clue what it is not working. My code is shared below… driver.find_element_by_xpath(“//*[contains(text(), ‘Test Here’)]”).click() Answer Click the button and not the span. Add /parent::button would fix your xpath.
Selenium python how I preform a click on toggle button
I am trying to click in call loop toggle with Selenium with the WebDriver on Python. the html code: this is the button: I have tried few options: the filed message: Answer Try using webdriver wait
How to use the WebDriverWait() to access the value of the next element having the same class names in selenium python
I am trying to access the values of both the fields Year and Quarter from this particular site. With the help from one member of StackOverflow, I was able to implement the code for the year part, now if I want to access the quarter part so how can I access the same. Below is the implementation so far. Any