Hi There,
I would like to click on element with its xpath , but without recording it.
Can someone please suggest the flow to achieve this ?
Without Recording , click on element
Re: Without Recording , click on element
Hello,
Do you mean RanorexPath (RxPath) or Xpath? They are very similar, but are different. You will need the RxPath in order to perform the below.
When recording, you are automatically adding each element you interact with to a repository, then performing an action on that repository element. If you wish to do this manually, you will need to do so in a code module.
See below for an example of clicking on the windows start button. First, create the element, then perform the action you wish on that element.
I hope this helps!
Do you mean RanorexPath (RxPath) or Xpath? They are very similar, but are different. You will need the RxPath in order to perform the below.
When recording, you are automatically adding each element you interact with to a repository, then performing an action on that repository element. If you wish to do this manually, you will need to do so in a code module.
See below for an example of clicking on the windows start button. First, create the element, then perform the action you wish on that element.
Code: Select all
Button myButton = Host.Local.FindSingle("//button[@accessiblename='Start']");
myButton.Click();