Posted: 2 Mar 2017 1:30 EST Last activity: 23 Aug 2018 19:03 EDT
How to Interrogate a web page whose url is changing?
I am trying to interrogate a web page to use it in an automation. The problem is every time a new web page is being created having the same contents(url is changing). What is the solution to this problem?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Look at your Url match rule for the page. As you can see in the screenshot below you have the ability to individually match the Host, the Path and the Query portion of the Url. Each one can be matched using a Simple match as shown here or a number of other ways, such as Contains, StartsWith, Regex and more. Determine what is changing in the Url and what is not and adjust the default match rule so it will match all the time. A couple of other tricks - change the Port to 0 and it will match all ports, change the Scheme to StartsWith http to match both http and https.
You need to find another property of the text box that is constant. Perhaps look at the ElementClassMatchRule or the AttributeValueMatchRule (this can use an attribute of the text box like OuterHTML to match specific content inside the OuterHtml). You'll need to determine something unique about each control that you want to match. That isn't something that can get a definite answer on the forum as each situation is unique, however through trial and error, you should be able to match it.