I'm working on automating the scheduling of some reports. I've gotten as far as opening the report, but Selenium can't locate the 'Gear' icon. Below is the HTML of the element:
<a id="reportViewMenu" title="Actions" class="imageButton1L" href="javascript:void(0)" role="menu" style="display: inline;"><span class="ariaLabel">Actions</span><img style="vertical-align:text-bottom;" src="/xmlpserver/static/v20220415.1218/theme/alta/images/toolbar/popupmenu_ena.png" alt="" border="0" onmouseover="this.src='/xmlpserver/static/v20220415.1218/theme/alta/images/toolbar/popupmenu_ovr.png'" onmouseout="this.src='/xmlpserver/static/v20220415.1218/theme/alta/images/toolbar/popupmenu_ena.png'" onmousedown="this.src='/xmlpserver/static/v20220415.1218/theme/alta/images/toolbar/popupmenu_dwn.png'"></a>
Here is my latest attempt at locating the element using Java:
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("'/html/body/table/tbody/tr/td/div/div/div/div/div[2]/div[1]/div/div[2]/a[2]'"))).click();
I've tried using relative xpath (using the attribute with ID, Title, and Class), cssSelector, and ID. Absolutely stuck on this so any help would be much appreciated.