| C# | |
|---|---|
public void Click( int xMin, int xMax, int yMin, int yMax, string clickType, string clickDistributionType ) | |
Parameters
- xMin
Type: System.Int32
The minimum x coordinate.- xMax
Type: System.Int32
The maximum x coordinate.- yMin
Type: System.Int32
The minimum y coordinate.- yMax
Type: System.Int32
The maximum y coordinate.- clickType
Type: System.String
The mouse button type. It's can have a value "Left", "Right", "DoubleClick".
- clickDistributionType
Type: System.String
The click distribution type. It's can have a value "Normal", "Random".
The emulation of click made only on the active tab.
The following example uses the Click method for emulation of click in specified area.
| C# | Copy Code |
|---|---|
// navigate to lessons.zennolab.com instance.ActiveTab.Navigate("lessons.zennolab.com", ""); // waiting for page loading instance.ActiveTab.WaitDownloading(); // emulation of click instance.Click(100, 100, 200, 200, "Left", "Normal"); | |
| PHP | Copy Code |
|---|---|
// navigate to lessons.zennolab.com $instance->ActiveTab->Navigate("lessons.zennolab.com", ""); // waiting for page loading $instance->ActiveTab->WaitDownloading(); // emulation of click $instance->Click(100, 100, 200, 200, "Left", "Normal"); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family