I am using Selenium on Python. I was unable to click on a Hidden Menu which seems to activate (make the web element visible) only using a mouse Right Click.
Upon Right Click on a web page icon this element appears on the Elements Inspector:
<div role="presentation" class="x-css-shadow" id="ext-element-16" style="box-shadow: rgb(136, 136, 136) 0px 0px 6px; z-index: 19000; left: 1163px; top: 596px; width: 162px; height: 218px;"></div>
Then underneath it appears also the List of Elements I need to click upon:
<div class="x-menu rptapp-notransparent x-layer x-menu-default x-border-box" style="z-index: 19000; height: 222px; left: 1163px; top: 592px; width: 162px;" role="menu" aria-hidden="false" aria-disabled="false" aria-expanded="true" id="menu-1899" tabindex="-1" data-componentid="menu-1899"><div id="menu-1899-bodyWrap" data-ref="bodyWrap" class="x-menu-bodyWrap" role="presentation"><div id="menu-1899-body" data-ref="body" class="x-menu-body x-menu-body x-unselectable x-menu-body-default x-box-layout-ct x-menu-body-default" role="presentation" style="left: 0px; top: 0px; width: 160px; height: 220px;"><div role="presentation" class="x-menu-icon-separator x-menu-icon-separator-default" id="ext-element-17"> </div><div role="presentation" id="menu-1899-before-scroller" class="x-box-scroller x-box-scroller-top x-box-scroller-menu x-box-scroller-menu-default x-unselectable" style="display:none"></div><div id="menu-1899-innerCt" data-ref="innerCt" role="presentation" class="x-box-inner x-box-scroller-body-vertical x-scroller" style="overflow: hidden; height: 216px; width: 156px;"><div id="menu-1899-targetEl" data-ref="targetEl" class="x-box-target" role="presentation" style="width: 156px;">
I tried many different way including this one:
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
RunButton = '//*[@id="menu-1899"]'
WebDriverWait(driver, 3).until(EC.element_to_be_clickable((By.XPATH, RunButton))).click()`
I want to make the menu visible so I can click on items from it.
Step1: this is initial view of the elements on the page:
Step2: the I right click on the report element I want to run:
Step3: This emenu element appears on the inspector and brings with it the subsequent elements I need to click upon on the Menu