I have link with below properties (class and title only) on my webpage :
<li class="wux-layouts-treeview-label" title="Shared with me">Shared with me</li>
I am trying below code for link in Javascript:
var a = document.getElementsByClassName("wux-layouts-treeview-label")[2];
a.click()
result shows undefined
.
also when I checked events
available for this link with the code :
getEventListeners(a)
, it shows blank {}
Please help me to click on this link.