Forum Discussion
6 Replies
- Marsha_R
Champion Level 3
Hi Shiva,
Specify the variable as an object. Please read the "Variables of the Object Type" article for details.
Is this what you are looking for?
- shiva_ranabhatContributorHi Tanya,
I get an error: Unable to find object team
var team= ProjectSuit.Variables.Organisationnode ;
textNode = form.panelLeftcontent.panelTree.panelXPanelXTree.panelXTreeNodeElXUnselectableXTr.team;
textNode.Click();
Is that how I should call it?
Hi Shiva,
You need to assign your object to the variable. Judging by the image, you didn't assign anything to Organisationmode. Once you do it, you can access the object's methods and properties in the following way:
- shiva_ranabhatContributor
Hi Tanya,
Thank you for the reply. But we can't actually assign value to an object type variable.
We can only assign it a value in the script this way, which will be meaningless since we have to assign it value in every single test scripts.
and this way assigning value returns an error..
Regards,
Shiva
- shiva_ranabhatContributor
Thats what I was looking for. Thanks Marsha.
Now I will need to set Name mapping for all the new variables identity, then it should be fine to run test in different environments with different front-ends, with just the matter of twerking of project suite variables. Fantastic!
Thanks,
Shiva