Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97793

When I print the id it doesn't match the id in "inspect element"

$
0
0

I have a webpage with the following:

<span class="plugin_pagetree_children_span plugin_pagetree_current" id="childrenspan173273808-0"> <a href="/display/Cardians/Shift+Turnover?src=contextnavpagetreemode">Shift Turnover</a> </span>

and I can successfully find it by link text using st = driver.find_element_by_link_text('Shift Turnover')

but when I print the id using print('-',st.id)

The id prints out as 63cd644e-495b-4985-8f9e-7ea067a2b6f1 instead of childrenspan173273808-0.

I've also attempted to get_attribute and get_property but those aren't working either. Any hints/tips/suggestions welcomed.

Thanks in advance.


Viewing all articles
Browse latest Browse all 97793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>