Adagio
9 years agoFrequent Contributor
Does VisibleOnScreen work for table rows?
Hello,
I'm trying to use VisibleOnScreen property in the code to check if the Row in a table is visible or not. Instead of returning a boolean value, it returns 'undefined'. is there something wrong that I'm doing here?
var newLastRowElement = page.FindChildByXPath(xPathOfLastRow);
newLastRowElement.ScrollIntoView();
Delay(1000);
Log.Message("Last Row Visible: "+ newLastRowElement.VisibleOnScreen)
here's what I get in the logs:
Last Row Visible: undefined
any help would be appreciated!
Thank you
Abhi