I want to log the text of an element. This element gets loaded in DOM when it is scrolled into view. I tried window.scrollTo() but it is not helping me either because the element is at variable scroll from the top in different cases.I am thinking of recursively scroll some pixels and check if element got loaded. Please suggest.
Note: I am using nodejs selenium-webdriver
via Triven
No comments:
Post a Comment