java - How to verify whether an WebElement is displayed in the viewport using WebDriver? -


consider following scenario,

  1. the webpage displayed along vertical scroll bar
  2. scroll bar present @ bottom
  3. webelement 'test' present @ top of page , not visible in current view port.

functionality verified:

clicking 'goto top' link in bottom of page should scroll page such webelement 'test' gets displayed within view port.

please let me know how verify whether element displayed in current view port or not using webdriver.

note: element.isdisplayed true in above case function checks whole page rather checking current view port only.

@vel ganesh - dont know if can verified using selenium. can done using sikuli. can check sikuli.org details. sikuli has java api , can integrated webdriver code well.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -