please provide scroll particular element bring view point action:
<div id="divreviewform" style="width: 100%; height: 463px; min-height: 300px; overflow: auto; float: left; padding-top: 20px;">
inside table enabled scroll bar , action scroll down bring view point, i' m not able above action.
tried following still failed:
((locatable)element).getlocationonscreenoncescrolledintoview();
just finding element using webdriver should scroll element view.
driver.findelement(by.xpath("//div[@id='divreviewform']))
should work. webdriver automatically scrolls element view when "finds" it.
Comments
Post a Comment