Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Conditional step based on active URL

$
0
0

Hi,

I would like to use conditional step (using if...else) based on active URL.

For example, if after performing some action i am navigated to specific url - additional step will be executed. If browser url does not contains some value (or not equal to given url) - do nothing, just continue the regular test flow.

I can add the coded step to verify the URL, but i'm not able to use the bool value from it into 'If' condition. Any workaround ideas?

Something like this:

string Url = ActiveBrowser.Url;
bool is​PageOpened;
is​PageOpened = Url.Contains("Start.aspx");​

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>