selenium4

trying to click a html button with selenium with python

trying to click a html button with selenium with python Question: Trying to go trough a website using selenium to parse some stuff, but i cant click it on a button to load a pop up java script page using firefox + geckowebdriver (latest) view_larger_image_button = driver.find_element_by_xpath(‘//span[text()="View larger image"]’) driver.click(view_larger_image_button) Here is the button : …

Total answers: 1

How to separately send email to the form

How to separately send email to the form Question: I made web contact form, my email sending to subscribe email box , I want to send email to the form only. Please help me driver.get(‘https://shop.rtrpilates.com/’) driver.find_element_by_partial_link_text(‘Contact’),click try: username_box = driver.find_element_by_xpath(‘//input[@type="email"]’) username_box.send_keys("[email protected]") I don’t understand how can I create a block between this, Help please Advance …

Total answers: 1

Python Selenium 'WebDriver' object has no attribute 'switch_to_window'

Python Selenium 'WebDriver' object has no attribute 'switch_to_window' Question: My Code do what it should do until it reach the point when a button is clicked and a second PDF window opens. I try to switch to the PDF window to close it but it does not work, my Code after the button is clicked …

Total answers: 1

Writing a line of code with Selenium Webdriver in Python

Writing a line of code with Selenium Webdriver in Python Question: I’ve been having trouble creating a function in python using selenium to click a button on a webpage. I’m following a tutorial that is out of date. In the tutorial the code is: driver.find_element_by_xpath(‘//div[@data-value="39455542968391"]’) Now, I know that selenium has changed how this is …

Total answers: 1