I’m using visualAssert to verify several key elements on a webpage. If I want to test things at the top I run “
storeEval | window.scroll(0,0)” and then check the header elements. Before I can visualAssert elements below-the-fold I need to scroll the page so they become in view. Only then will Kantu find the image.
Here is my problem I need help with. The length of my web page varies day to day. My scripts run flawlessly one day and break the next. The only fix I know is to adjust my window.scroll values to adjust to the new page length.
Is there a workaround so I can build my Visual tests in a more robust way? How can do a visualAssert for an image when I don’t know exactly where on the page it will exist?