Search found 238 matches

by sdaly
Wed Feb 13, 2013 12:53 pm
Forum: Automation API
Topic: how to check for label state change
Replies: 11
Views: 2278

Re: how to check for label state change

I wouldn't use a loop without a timeout...

Am I missing something? Can't you just do?

Code: Select all

Validate.Exists("./form//label[@id~'.*complete$']",60000 * 45);
by sdaly
Tue Feb 05, 2013 9:51 am
Forum: Automation API
Topic: How to close browser?
Replies: 12
Views: 9545

Re: How to close browser?

by sdaly
Mon Feb 04, 2013 9:30 am
Forum: General Questions
Topic: Validate.Exist() fail let usercode force break
Replies: 2
Views: 2426

Re: Validate.Exist() fail let usercode force break

You could catch the exception, pass a Validate.Options object to Exists with exception on fail false, or use the following version of exists -

Code: Select all

Validate.Exists("rxpath", "Validating", false);
by sdaly
Wed Jan 23, 2013 11:28 am
Forum: General Questions
Topic: how to use coordinates wisely and successfully?
Replies: 5
Views: 6378

Re: how to use coordinates wisely and successfully?

How about just using RX paths to find target elements -

Code: Select all

Button b = "/button[@text='Start']";
b.Click();
..and if you need to carry out an action in a specific place on that element, use relative locations -

Code: Select all

b.Click(Location.CenterRight);
by sdaly
Tue Jan 22, 2013 1:45 pm
Forum: General Questions
Topic: Increase element wait time in .Net - Solved
Replies: 2
Views: 2415

Re: Increase element wait time in .Net

Adapter.DefaultSearchTimeout = 60000; //set global default timeout to 1min ;)
by sdaly
Mon Jan 07, 2013 11:20 am
Forum: General Questions
Topic: Automated Citrix Testing
Replies: 2
Views: 3800

Re: Automated Citrix Testing

You might want to take a look into the image based side of Ranorex...A little trickier but certainly possible...
by sdaly
Fri Oct 05, 2012 7:52 am
Forum: Automation API
Topic: array count error
Replies: 4
Views: 2245

Re: array count error

As the error states, the Array type does not contain a member called Count (collections do)... Use Length when dealing with Arrays -

http://msdn.microsoft.com/en-us/library ... array.aspx
by sdaly
Mon Oct 01, 2012 8:24 am
Forum: Automation API
Topic: query data from multiple tables
Replies: 1
Views: 1874

Re: query data from multiple tables

Take a look at joins -

select * from table1 t1
inner join table2 t2 on (t2.t1id = t1.id)


http://www.w3schools.com/sql/sql_join.asp
by sdaly
Tue Sep 11, 2012 11:46 am
Forum: Bug Reports
Topic: Key sequence / missing letters
Replies: 10
Views: 3290

Re: Key sequence / missing letters

Change "partial" to "static"....
by sdaly
Tue Sep 11, 2012 8:19 am
Forum: Bug Reports
Topic: Key sequence / missing letters
Replies: 10
Views: 3290

Re: Key sequence / missing letters

This may be of interest - http://soft-test-tech.co.uk/2011/09/robust-data-input/

The idea is to validate the field after entering to ensure it contains the desired input, if not, re-enter again - just like a human would.
by sdaly
Tue Sep 11, 2012 8:17 am
Forum: Automation Discussions
Topic: HP Quality Center Logging
Replies: 23
Views: 30254

Re: HP Quality Center Logging

You are welcome Jim. Glad you found it useful :D
by sdaly
Tue Sep 11, 2012 8:17 am
Forum: Automation API
Topic: How to make generic function for different type of controls
Replies: 9
Views: 3499

Re: How to make generic function for different type of controls

You can achieve this by using the Adapter type -

Code: Select all

Button b = "/button[@text='Start']";
DoSomething(b);

public static void DoSomething(Adapter a){
	a.Click();
}
Not a generic method, but should work for you!
by sdaly
Tue Jul 17, 2012 12:50 pm
Forum: Automation API
Topic: XmlLogger - doesn't take care of the Xsl file parameter
Replies: 1
Views: 1920

Re: XmlLogger - doesn't take care of the Xsl file parameter

I used to set this by setting the public field directly and it worked OK - XmlLogger.ReportStylesheetUrl = stylesheetPath;
by sdaly
Fri Jul 13, 2012 5:18 pm
Forum: Automation Tools
Topic: Need Spy Tool with Runtime licence
Replies: 13
Views: 2567

Re: Need Spy Tool with Runtime licence

Why couldn't you compile - there is no license checking done at compile time when using VS or SharpDev? Not that I am aware of anyway! From what I can see, the licensing kicks in the first time you make a call to any functions in the Ranorex DLLs.