0

I am using selenium to do some WebScraping but can't detect an element with xpath, full xpath, id or text.

<div id="cbp-vm" class="cbp-vm-switcher cbp-vm-view-list">
<div class=cbp-vm-options">...</div>
<div>
<ul>...<ul>
</div>
</div>

I want to get stuff from inside the but can't. I can locate objects up to the "cbp-vm-switcher" stuff with both xpath and id.

4
  • Does this answer your question? How to select element using XPATH syntax on Selenium for Python? Commented Jul 17, 2021 at 23:27
  • can you share a link to the web page? Commented Jul 18, 2021 at 14:10
  • astetelematiche.it/aste-telematiche-beni-immobili Commented Jul 18, 2021 at 22:33
  • I kinda solved the problem because I found out that if I run a document.evaluate script in the console it can return the value but when I try to use the driver.execute_script methode it returns None. Commented Jul 18, 2021 at 22:35

1 Answer 1

1

you can use a google exstension called katalon Recorder, it basically works like a recorder and is usually very accurate.

Sign up to request clarification or add additional context in comments.

2 Comments

I tried it but all of the xpaths to the element fail, and the css selector does too
make sure that you are selecting the correct bit of the XPath, I haven't ever had a malfunction or indirect XPath using it, also make sure that the thing your trying to interact with is a button or some sort of interaction object

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.