Skip to content
Advertisement

Tag: webdriver

Cant get logging element

When i was testing my program, it’s end with code 1 here is full error (“Traceback (most recent call last): File “C:Usersds072PycharmProjectspythonProjectmain.py”, line 20, in <module> wait.until(EC.element_to_be_clickable((By.XPATH, “/html/body/main/div/div/div/div[1]/div[3]/div[1]/div[1]/input”))).send_keys(“my username”)”) here is my code (https://pastebin.com/RThnY8GY) I have tested alternatives for this value (“/html/body/main/div/div/div/div[1]/div[3]/div[1]/div[1]/input”) but with out results :C Please help me Answer The following is one way to select those fields

Could not get version for google-chrome with the command: powershell “$ErrorActionPreference=’silentlycontinue’ using WebDriver manager and Selenium

I’m trying to create a script using python that separate 2 kind of websites , the one with SPF included and the others with SPF , and classify them using python, so in the beginning it worked perfectly but these daysit gives me a message error that I don’t find a clue about it The output message is as follows:

Select a button with selenium with same XPATH but no tag or id

I would like to select a button with selenium on the net, here’s the HTML code of the button: They are 1 to 5 and have all the same XPATH : //html/body/div[2]/div/section/section/div[1]/div/div[2]/div[1]/div[2]/div[2]/div/div[2]/div/div[1]/div/button[1] How can I select the third or second button with no tag in the HTML code? Answer You can use find_elements instead of find_element. Then you can get

After filling first card number field I can’t find any iframes on the page. How to solve this

class TestAplazame(unittest.TestCase): Look from here iframes are only available to the top block iframes elements are not available to the bottom block. included error message at the bottom if name == ‘main’: unittest.main() Even I can’t find the same iframe anymore. What is the problem. how to fix it. It’s a payment gateway test. gateway is from stripe I believe.

Advertisement