Ask a Question

Pages with query parameters

imranq
Not applicable

Pages with query parameters





I have a web page like http://foo/show.aspx?session_id=1234



The session_id is different everytime the user logs in.  How can I make TestComplete automate this page but ignore the session_id since it is different each time? 



When I call Page.ToUrl, it wants the whole url.  If I specify the whole url, when I run the test there is a new session_id generated and of course, TestComplete can't find the page anymore.



How do I handle this in TestComplete?



Thanks,

-Imran
1 REPLY 1
YMinaev
Staff

RE: Pages with query parameters

Hi,



I recommend that you read the "Project Properties - Web Testing Options" help topic about the 'Ignore dynamic URL parameters' option.



In general, you need to replace the variable part in your URL with a wildcard (http://foo/show.aspx?session_id=*).

------
Yuri
TestComplete Customer Care Engineer

EVENT Participate in our annual online activities to have fun and be rewared:
Join Wintertainment 2021
cancel
Showing results for 
Search instead for 
Did you mean: