Answer the question
In order to leave comments, you need to log in
How to click on text with no elements to cling to?
There is text when clicked on which opens more text. Its code looks like this:
<span class="">
<a id="id3cc" href="javascript:;">Текст</a>
<div id="id3df">
</div>
</span>
button = driver.find_element_by_xpath('//a[contains(text(),"Текст") ]')
driver.execute_script("arguments[0].click();", button)
no such element: Unable to locate element: {"method":"xpath","selector":"//a[contains(text(),"Показать контактную информацию") ]"}
(Session info: headless chrome=89.0.4389.82)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question