I am trying to click a Submit button with no id so am using Action Move Mouse to Text On Screen. The problem I am having is the button is "pushed" offscreen or mostly offscreen sometimes because the content above it on the page gets taller in some iterations of a loop . In this case, I get an error: couldn't find text. I tried both of the following javascript functions, but neither caused scrolling down. Why isn't the javascript working? Or is there a better way to do it.
-----------------------
function ExecuteScript()
{
window.scroll(0,700);
}
--------------------------
function ExecuteScript()
{
window.scrollTo(0, document.body.scrollHeight);