Search found 18 matches

by johnsmith
Mon Mar 26, 2012 6:41 pm
Forum: General Questions
Topic: Ranorex identifies elements, but won't click on them.
Replies: 5
Views: 2565

Re: Ranorex identifies elements, but won't click on them.

Ok, I was able to solve the issue - I simply had to give Ranorex admin rights! :)

I think you should add this suggestion to always give Ranorex admin rights to your user guide - this way others will be able to save lots of time.
by johnsmith
Mon Mar 26, 2012 6:16 pm
Forum: General Questions
Topic: Ranorex identifies elements, but won't click on them.
Replies: 5
Views: 2565

Re: Ranorex identifies elements, but won't click on them.

I tried to do what Markus suggested, without any success. Setting UseEnsureVisible to 'true' or calling .Focus() on my buttons has no effect at all. What do you mean by "Does Ranorex make the click before the pop up appears?" It successfully clicks on the taskbar icon, but it won't click on the popu...
by johnsmith
Sun Mar 25, 2012 1:06 am
Forum: General Questions
Topic: Ranorex identifies elements, but won't click on them.
Replies: 5
Views: 2565

Re: Ranorex identifies elements, but won't click on them.

Hello, have you received my snapshots? Any feedback so far?
by johnsmith
Wed Mar 21, 2012 9:27 am
Forum: Bug Reports
Topic: Editor bug - Code gets wiped
Replies: 3
Views: 2052

Re: Editor bug - Code gets wiped

No, actually I never add code to the recording files. I'm writing all of my code into the .usercode files. And sometimes all of the data might get wiped in the .usercode.cs files.

I think this is a editor-related bug. I had this happen to me twice in the last few days...
by johnsmith
Wed Mar 21, 2012 12:57 am
Forum: Bug Reports
Topic: Editor bug - Code gets wiped
Replies: 3
Views: 2052

Editor bug - Code gets wiped

Hello, Sometimes (maybe once per day) one of my usercode files gets overwrited with blank editor-generated code. Suddenly everything disappears apart from the methods that are declared within the recording editor. This usually happens when I build/play my project. If I try to add new code to the sam...
by johnsmith
Tue Mar 20, 2012 8:48 pm
Forum: General Questions
Topic: Ranorex identifies elements, but won't click on them.
Replies: 5
Views: 2565

Ranorex identifies elements, but won't click on them.

Hello, I'm having this strange issue: 1. I have an icon in the task bar. I need to click on it with my right button and than I need to click an item from the popping up menu. Ranorex automizes clicking on the taskbar icon, but it won't click on the item from popping up menu. The mouse even won't mov...
by johnsmith
Tue Mar 20, 2012 5:30 pm
Forum: General Questions
Topic: Report.Log in parallel threads
Replies: 8
Views: 2709

Re: Report.Log in parallel threads

I have many different threads in my automation that come and go and I need to log messages from all of them. So far my solution worked fine, even though it's very simple.
Thanks for sharing your code!
by johnsmith
Tue Mar 20, 2012 1:37 pm
Forum: General Questions
Topic: Report.Log in parallel threads
Replies: 8
Views: 2709

Re: Report.Log in parallel threads

Here's a workaround log system I've created. It will add the messages from the main thread to the report, and it will write all the messages from other threads to a file. using System; using Ranorex; using System.IO; namespace Helper { static public class Logger { static readonly Object locker = new...
by johnsmith
Mon Mar 19, 2012 8:14 pm
Forum: General Questions
Topic: Report.Log in parallel threads
Replies: 8
Views: 2709

Re: Report.Log in parallel threads

Can you please give me a short code example on doing that?
Thanks a lot!
by johnsmith
Mon Mar 19, 2012 5:55 pm
Forum: General Questions
Topic: Report.Log in parallel threads
Replies: 8
Views: 2709

Report.Log in parallel threads

I've noticed that calling Report.Log from a parallel thread doesn't log messages to the main report.
How can I make it log messages from parallel threads so that I can see them on screen at runtime and later on in the report?
by johnsmith
Mon Mar 19, 2012 5:52 pm
Forum: General Questions
Topic: Wait for ImgTag to load
Replies: 2
Views: 1824

Re: Wait for ImgTag to load

What I ended up doing is I captured a screenshot of a blank element and was waiting for it to go away.
by johnsmith
Mon Mar 19, 2012 2:11 pm
Forum: General Questions
Topic: Random NullReferenceException when accessing an adapter.
Replies: 1
Views: 1614

Re: Random NullReferenceException when accessing an adapter.

I solved the issue, it was a problem on my side - I was accessing a null property.
by johnsmith
Mon Mar 19, 2012 2:09 pm
Forum: General Questions
Topic: Casting repository items
Replies: 2
Views: 1818

Re: Casting repository items

Thanks, adding ".Self" to the repo item did the trick!
by johnsmith
Sun Mar 18, 2012 5:43 pm
Forum: General Questions
Topic: Wait for ImgTag to load
Replies: 2
Views: 1824

Wait for ImgTag to load

Hello, I have a webpage with an image. The image takes some time to load (around 1-2 seconds). Is it possible to somehow validate that the image is loaded? Right now the only safe option for me is to wait with Delay.Duration (5000) Validate.Exists on the adapter always returns true. It seems to me, ...
by johnsmith
Sun Mar 18, 2012 1:28 pm
Forum: General Questions
Topic: Random NullReferenceException when accessing an adapter.
Replies: 1
Views: 1614

Random NullReferenceException when accessing an adapter.

Hi, I have an ATag adapter that's stored in the repository. The problem occurs only for this particular adapter (I have a bunch of others). I'm using Internet Explorer 9.0. Here's how the adapter is created in the code: var troublesomeAdapter = repo.myDiv.troublesomeAdapter; troublesomeAdapter.Press...