I want to click on elements whose class is “innerImageWrapper editlink”. I use this code but it’s not working. it’s working. but I dont want use xpath. I want use class name Answer By.CLASS_NAME receives single value while here you trying to pass 2 values: innerImageWrapper and editlink. To locate element by 2 class names you can use CSS Selector
Tag: selenium-webdriver
Selenium – How to find an element by part of the placeholder value?
Is there any way to find an element by a part of the placeholder value? And ideally, case insensitive. <input id=”id-9″ placeholder=”some TEXT”> Search by the following function doesn’t work browser.find_element(by=By.XPATH, value=”//input[@placeholder=’some te’]”) Answer You can always use contains instead of equals, as following: To make it case-insensitive you can use translate function, as following: Case-insensitive contains Xpath is taken
Python Selenium: Inputting Email Address and Password and click Continue
I am using the following code to input Email address and password, by clicking the continue element. However I have no idea should I enter driver.switch_to_frame and then webdriver can enter the email and password and click? Answer It’s unclear what is the problem you faced with, why your code didn’t work. Maybe you missind delay to wait for elments
How do I convert this selenium next button clicking code into loop so I can get url of all the pages until next button disappears
Hello I wrote this selenium code to click Next button and give me url of the next page. The Question is I want to convert this code in a loop so I can click on the next button & collect all URLs until next button disappears. How do I out all the collected URLs in a list? I tried While
Selenium – how to check that button is HIDDEN, without throwing error? (python)
I’m trying to do the test to learn Allure, and to assure that the test is passed, the button has to be INVISIBLE. It first clicks 1st button to make 2nd button appear. Then click 2nd button – so same (2nd button disappears). Here it is: http://the-internet.herokuapp.com/add_remove_elements/ My code would look like this (below), it clicks the 1st button, 2nd
Python – Selenium is complaining about element not being scrolled into view after scrolling to that element
I have the following code which is supposed to scroll down the page and then click a button. When I run my script, I can see that the page does scroll until the element is at the very bottom of the page, but then the script fails when it gets time to click on that button and I get this
Login Automation Using Selenium Not Working Properly
I have built a login Automator using Selenium, and the code executes without errors but the script doesn’t login. The page is stuck at login page, email and password are entered, but login is not completed. enter image description here I have tried 2 ways to login: By clicking on Login through Click () Using Enter in password area But
Selenium Python .click() not working on one element
So, I am trying to make a simple project that simply just auto clicks all the details to fill out a form to get ready to post. It works perfectly up until just one element. There are 2 very similar elements; ones a category and the other is a sub-category. It states its unable to find the element, I’m fairly
Why selenium is not starting next url after quiting the previous url
Actully I’m working on some URLs. URLs are store in my database while picking one by one and looking for it resources and storing that resources in a database. if I do this with out using driver.quit() somehow for everyurl it store information from the beginning so I decide to use driver.quit now it work only for the first URL
How do I stop my scraper from hitting an error whenever it clicks the next button?
Hello so i’m trying to scrape next page on google shopping website. But i get an error whenever my scraper clicks the next button. It stops working when it loads the next page. Here’s my codeblock next_page = driver.find_element(By.XPATH, ‘//*[@id=”pnnext”]’) next_page.click() HERE’S THE ERROR I GET Traceback (most recent call last): File “c:UsersLPDocumentspythonwedgwoodwedgwood.py”, line 50, in name = card.find_element(By.CLASS_NAME, ‘OSrXXb’).text.strip()