I've scoured all the online forums, but I can't seem to find a solution to my problem. The web page I'm testing has a hidden link that I'm trying to locate manually through xpath or the element's ID attribute. However, when running the web driver script, I'm unable to locate it, even though no errors are being thrown on that element. The error seems to occur on the next command or line.
I came across some code in the forums that scrolls the entire page. However, I specifically want to scroll down in a particular div area, as shown in the screenshot.
JavascriptExecutor jsx = (JavascriptExecutor)driver;
jsx.executeScript("ctl00_Menu1_scrollDiv.scrollBy(0,250)", "");
The div id for this area is "ctl00_Menu1_scrollDiv"
Element id: ctl00_Menu1_DlMenu_ctl09_LnkMenuname
I would greatly appreciate any assistance with this issue. Thank you in advance.
Your help will be highly valued.