C# Selenium - Finding Element On Continuously Growing Page
I am trying to find a better way to do this than using: js.ExecuteScript("scroll(0, 1300)"); I have a page where the data can change making the page height change up or down in size. So when I go to click on an element today that is located at 1500px , tomorrow it may be 800px and the element will not be found and the test case fails. So what have you guys used to locate elements on a page where the size changes? I am not sure if this will work but you can try getting the max height of your page using something like this: Math.max($(document).height(), $(window).height()) Then you can scroll