I'm trying to build a facebook bot. But i'm unable to find an element. The actual element (as you see it without looking into the html code) is in a window (is the window that shows when you are trying to sell something in facebook's marketplace). I have already found an element inside that window (driver.find_element_by_xpath('//*[contains(text(), "Artículo en venta")]').click()) so there is no problem with 'frames'
Here is the element code:
<input class="_58al" type="text" aria-autocomplete="list" aria-controls="js_mq" aria-expanded="true" data-testid="searchable-text-input" role="combobox" placeholder="Selecciona una categoría" autocomplete="off" autocorrect="off" value="">
I have tried the following:
driver.find_element_by_xpath('//*[@id="js_st"]/input').click()
driver.find_element_by_xpath('//input[@placeholder="Seleccione una categoría"]').click()
driver.find_element_by_css_selector('input._58al').click()
driver.find_element_by_link_text('Selecciona una categoría').click()
driver.find_element_by_xpath('//*[contains(text(), "Selecciona una categoría")]').click()
I'm using Linux Mint as my OS (if that mater)
The syntaxis may be wrong. If so feel free to correct me! Any ideas will be aprecciate it.
Thank you so much!