I am having trouble using selenium and using CSS select for onclick.
The HTML code looks like this:
<div class="hexagon pointer" onclick="login.LoginCACSynchro('SYNCHRO');">
My current code looks like this:
Synchro = driver.find_element_by_css_selector("a[onclick^='login.LoginCACSynchro('SYNCHRO');']")
Not sure what I a doing wrong here, any help would be very appreciated!
Update
It looks like it wants to work but I am getting this error:
Message: element click intercepted: Element <div class="hexagon pointer" onclick="login.LoginCACSynchro('SYNCHRO');">...</div> is not clickable at point (651, 543). Other element would receive the click: <div id="loader2" style="opacity: 0.627993;">...</div> (Session info: chrome=103.0.5060.134)