javascript - How can I implement page objects with Selenium and node js? -
i'm struggling async nature of node , selenium. i've created page object class encapsulate login page don't know how make client wait response page object class. example, have page object method called isuserloggedin() should return true or false depending on elements on page. problem i'm having selenium returns promise can't wait result. on client end, don't want receive promise because i'd have write logic deal whatever promise back. ideally isuserloggedin() method return true or false can't make happen because of async nature of selenium api. how can use page objects in selenium javascript?
Comments
Post a Comment