2021年3月29日星期一

Python Selenium: Unable to Locate Element on Amazon

I've been trying to fill the input:

<input id="turbo-checkout-pyo-button" data-testid="" class="a-button-input" type="submit" value="Place your order" aria-labelledby="turbo-checkout-place-order-button-announce">  

I've tried:

placeorderBtn = order = browser.find_element_by_id("turbo-checkout-pyo-button")  

I always get:

Unable to locate element: {"method":"css selector","selector":"[id="turbo-checkout-pyo-button"]"}

It doesn't seem to work. I don't know if I am giving enough info, so if you need more info of this to help me, please, let me know!

https://stackoverflow.com/questions/66864502/python-selenium-unable-to-locate-element-on-amazon March 30, 2021 at 11:44AM

没有评论:

发表评论