I have tried a lot to find a solution to a link that has onclick
attribute but I could noot find a clue
The HTML for the element like that
<a href="javascript:void(0);" onclick="dealSideLinkPage('/lawyerViews/lawOrders/newCase.jsp')">أمر أداء جديد</a>
I tried to use ExecuteScript
but got error. I am using selenium in VBA
Trying this line doesn't work with me
.ExecuteScript "document.getElementByXPath(""//*[@id='SrvTabs1']/div/div/div[1]/nav/div/ul/li[3]/a"").click()"