cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Svenny
Advocate III
Advocate III

UI Flow with Selenium - Getting status of a command (OK, pass, fail or similar)

Hello!

 

I am using Selenium to automate a simple web process. During a step, I need to check "Verify element present", and if it is present, I want to follow up with some new steps. If it is not present, I want to do a different set of actions.

I thought it should be a simple solution to this, but I can't seem to find any documentation about how to acquire and use these statuses. 

 

Anyone know a simple solution for this? Are there any native variables in Selenium containing this information which I can refer to?

 

Sincerely,

Svenny

1 REPLY 1
Svenny
Advocate III
Advocate III

If grabbing the command status is not possible, does anyone have an idea on a workaround that would achieve the same result?

So far, for those familiar with Selenium, I've tried the "Store Xpath Count"-route. However, this does not appear to be working properly when the element does not exist on the page (even with a wildcard in the xpath expression).

 

Hoping to find someone who has built a UiFlow for web with conditions based on the content of the page.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,543)