Forum Discussion

imranq's avatar
15 years ago

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

  • 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=*).