Can‘t access some GUI element‘s properties when using Geb framework
Geb is a framework for web application test automation, based on Selenium WebDriver. Sometimes it‘s required to access element‘s properties that are not accessible from page markup by means of WebDriver, for instance attribute „:checked“.
Geb provides access to JavaScript variables and also allows to run JavaScript on the page. With help of that feature properties can be accessed and actions can be performed (click, etc.)
Syntax: js.exec()
Submitted by Anastasiia Ulianova on Sat, 11/18/2017 - 22:49
Comments
I didn't know about this problem, so it's good I know of it and it's solution before it happens to me! Thank you!