I want to make a decision based on a UI element in a web browser. So basically in chrome, when I log in to an internal timesheet website it takes a considerable amount of time says 30 to 1 minute. When I try to log in manually it works fine. But when trying to log in using UI path it sometimes displays only white screen in the entire browser.
When it loads successfully I want to click on a button “Project”
The workflow is like,
a) If the element “Project” is found, click the project and continue with the timesheet flow.
b) If not found, close the browser and try open browser and continue login process and click “Project”
I so far used find element/if element exists/on element appear but these activities create UiElement. Based on the UiElement I can’t make a decision flow. Kindly help where am I missing.