Good day and thanks in advance
So I have a webpage that uses iframe. Inside that iframe there is a table with a vertical scroll bar to the right. I want to know how I can scroll up and down on the iframe bar using java with/without webdriver.
The command that is most popular is
js.executeScript("window.scrollTo(0,Math.max(document.documentElement.scrollHeight,"+
"document.body.scrollHeight,document.documentElement.clientHeight));");
However this code only controls the windows scroll bar for Firefox not the nested bar. So I want to know what the code is to control the nested bar.
my code:
<iframe id="myframe" style="width: 100%; height: 1000px; border: 0">
<div id="mytable" class="body">
.
.
.
</div>
</iframe>