Dynamic Page localhost
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dynamic Page localhost
I'm automating the mobile application using Record and Play and I observe that I encountered an error every time I rerun the application.
I always got an error The object "formMiddle_Name_" does not exist.
Upon investigation I observe that every time I run the application, the number in page local host was changing(Please see the red font of the object)
This is my actual Object:
Aliases.Device.Process_allianzpnblife_azjourney.RootLayout.WebView_orgapachecordovaengineSystem.Page_localhostcreateeditlead9bad9.formMiddle_Name_.formMiddle_Name_
Please help me to solve this problem. Thank you!
- Labels:
-
Mobile Testing
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wildcards will help you out
https://support.smartbear.com/testcomplete/docs/reference/misc/using-wildcards.html
You can edit your test in the place where the number is changing so it will accept all numbers there instead of just the one you recorded.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try
Aliases.Device.Process_allianzpnblife_azjourney.RootLayout.WebView_orgapachecordovaengineSystem.Page_localhostcreateeditlead*.formMiddle_Name_.formMiddle_Name_
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @butoy07 -
You would have to add the wildcard in the NameMapping section instead of in the aliases.
Please take a look at this page for more information on working with NameMapping properties: https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/basi...
Thanks,
Emma
