Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sharing objects between actions
#1
Not Solved
I have two actions, one to login the other to create order records.

Action 1:

Code:
Browser("Google").Page("xx").WebEdit("username").Set "xx"
Browser("Google").Page("xx").WebEdit("password").SetSecure "xx"
Browser("Google").Page("xx").WebButton("Log In").Click

RunAction "Action2",  allIterations


Action 2:

Code:
Browser("Google").Page("xx").Frame("nav").Link("Create Order").Click
Browser("Google").Page("xx").Frame("main").WebList("xx").Select "xx"
Browser("Google").Page("xx").Frame("main_2").WebButton("Save").Click



When I try to run it I login fine but get a run time error:

The "Google" object was not found in the Object Repository.
Check the Object Repository to confirm that the object exists or to find the correct name for the object.

Line (2):
Code:
"Browser("Google").Page("XX").Frame("nav").Link("Create Order").Click".
Tip: If the objects in your application have changed, the Maintenance Run Mode can
help you identify and update your steps and/or the objects in your repository.


Please help me add the "Google" object so that the other Actions can use it.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to call Actions from other Actions Naresh 1 7,974 09-25-2014, 10:26 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 2 Guest(s)