Search found 5 matches

by Northers75
Mon Sep 05, 2016 9:28 am
Forum: General Questions
Topic: Use xPath in conditional statement
Replies: 8
Views: 3030

Re: Use xPath in conditional statement

Thanks for all the help, I've sorted this now. In the end all I did was get the rawtext from the element, convert it to a string and take a substring of the portion that I need. I put all that in a try catch so execution did not stop if the element was not found by Ranorex then based my condition on...
by Northers75
Fri Sep 02, 2016 3:45 pm
Forum: General Questions
Topic: Use xPath in conditional statement
Replies: 8
Views: 3030

Re: Use xPath in conditional statement

Yep, it's a string and the addition of <String> has stopped the errors, but now attrib only ever returns null. :(

Any ideas?
by Northers75
Fri Sep 02, 2016 2:20 pm
Forum: General Questions
Topic: Use xPath in conditional statement
Replies: 8
Views: 3030

Re: Use xPath in conditional statement

Hi Asdf, Thanks for the reply. I have tried using GetAttributeValue in code, but I can't get it to work. I'm using: - var attrib = repo.SmartSEMStatus.List10063.BeamStateEqShutdown.GetAttributeValue("InnerText"); if (attrib == "Beam State = ") { // Do nothing } else { // Do something } All I keep ge...
by Northers75
Wed Aug 31, 2016 3:42 pm
Forum: General Questions
Topic: Use xPath in conditional statement
Replies: 8
Views: 3030

Use xPath in conditional statement

Hi, I have some variables that I need to set in my UI. Unfortunately I cannot tell whether they are set until I start running and the steps used to enable them also disable them so I have to know whether they are enabled or not before I try and enable them. This is an old UI so I have to use an xPat...
by Northers75
Fri Aug 19, 2016 10:53 am
Forum: General Questions
Topic: Cant move mouse when recording
Replies: 9
Views: 3884

Re: Cant move mouse when recording

Hi,

I have been having the same trouble recently and realised that it was only happening each time I had Snipping Tool open. As long as Snipping Tool is closed Ranorex runs fine.

Not sure if this will help others, but it was definitely the cause of my issue.

Cheers,

Nick