I need to scroll into a DIV for printing the entire page.
I already tried SendKeys at the DIV element, but it scrolled the entire page. I don´t want a solution to scroll to a defined object because I have many different screens with this attributes with different elements.
The DIV is:
<div class="content modal-overflow">
The CSS Class of it:
.modal-overflow
{
max-height:430px;
overflow:auto
}
430px is the visible part of the DIV. The entire DIV has 750px.
The code:
<div class="modal fade" id="modalDetalhes" tabindex="-1" role="dialog">
<div class="modal-dialog width750">
<div class="modal-content">
<div class="modal-header">
</span></button>
</div>
<div class="modal-body">
(...)
<div class="content modal-overflow">
<div class="row">
<div class="col-md-3">
<div class="form-group">
(...)
Today I use a function to Get Entire Screenshot. I used this solution: Selenium WebDriver C# Full Website Screenshots With ChromeDriver and FirefoxDriver
How can I do this scroll printing the Entire DIV?