Ask a Question assining a Variable

Established Member assining a Variable

I am trying to do an edit on an object and select a value from the drop down.  When I select the object its being created with the client number. I want to assign a Variable so I can re-use the same code looping through different clients. I have tried but keep getting object not found. I am new to test complete so maybe missing a very simple step. I want to have the 664006 as a variable. Java


  let page = Aliases.browser.page664006
  let form = page.formEditclient;"No");

Community Hero



I have tried but keep getting object not found.

What line from your code sample throws this error?


  /Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
SmartBear Alumni (Retired)

Thank you for trying to help here, Alex!


@emma_cheeseman I see that you opened a support case and got a reply there. Let me post it to the Community:



If I understand correctly, when you open a page with the specific client ID, the page URL is modified so it contains this ID.
This could prevent tests from working indeed when a page is mapped in Name Mapping by the URL with this ID. However, this variable part of the URL can be just ignored. For this, you can use the wildcard (see Using Wildcards []).


Sonya Mihaljova
Community and Education Specialist

Showing results for 
Search instead for 
Did you mean: