How to use 'Invoke Action'

Best practices, code snippets for common functionality, examples, and guidelines.
omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

How to use 'Invoke Action'

Post by omayer » Sun Jul 17, 2011 6:36 am

Referring to user guide " http://www.ranorex.com/support/user-gui ... sting.html" .... -- to ensure visibility - using some lines of user code before you simulate the click action - or use a so called 'Invoke Action' to select a list item.
Please provide Code example to 'Invoke Action' to click on link/hyperlink.
Thank you,
Beginner

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: How to use 'Invoke Action'

Post by Support Team » Mon Jul 18, 2011 1:25 pm

Hi,
omayer wrote:Please provide Code example to 'Invoke Action' to click on link/hyperlink.

Code: Select all

repo.AWebDoc.ALink.PerformClick();
or in recorder:
  • Add New Action
  • Invoke Action
  • At the new generated action choose a repository item on which you want to invoke your action (your link) for Repository Item
  • At the new generated action choose the "Perform Click" action for action name
Kind regards,
Tobias
Support Team

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: How to use 'Invoke Action'

Post by omayer » Mon Jul 18, 2011 3:00 pm

Thank you Tobias. It worked.
Tipu