Search code examples
pythonseleniumselenium-webdriverxpathebay-api

Python selenium can't find the search box in ebay


I am trying to get python selenium to click on the description box for eBay selling but it can't find it. I have tried to switch to the frame but it can't find them either. This is the code I have now.

driver.switch_to.frame('v4-183txtEdit_st')
driver.find_element_by_xpath('//*[@id="v4-183txtEdit_st_wr"]/div[2]').click()

enter image description here This is an image of the description box I am trying to get selenium to click on.

This is it but with inspect element. enter image description here


Solution

  • I was already in another frame so I had to exit. This is the code I used.

    driver.switch_to.parent_frame()