Get all elements of a certain type

Ask general questions here.
User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Get all elements of a certain type

Post by Support Team » Mon May 02, 2016 8:11 am

Hi Peadar_H,

Generally, I would recommend implementing the custom code within the ITestModule.Run() method of the user code module.

Code: Select all

/// <summary>  
/// Performs the playback of actions in this module.  
/// </summary>  
/// <remarks>You should not call this method directly, instead pass the module  
/// instance to the <see cref="TestModuleRunner.Run(ITestModule)"/> method  
/// that will in turn invoke this method.</remarks>  
void ITestModule.Run()  
{  
     Mouse.DefaultMoveTime = 300;  
     Keyboard.DefaultKeyPressTime = 100;  
     Delay.SpeedFactor = 1.0;  

     <CUSTOM CODE>
}  
If you have any other issues, please do let me know.

Sincerely,
Johannes
.
Image

Peadar_H
Posts: 18
Joined: Tue Jun 02, 2015 8:48 pm

Re: Get all elements of a certain type

Post by Peadar_H » Mon May 02, 2016 3:27 pm

Thank you Johannes, I couldn't get it to work like that last week but now it does! I think i was missing a bracket or something. Many thanks again.