Click Action API Reference ๐ฑ๏ธ
Introduction ๐
The Click
action is used to simulate a mouse click on a web element. This is part of the core
package in Go-Ski.
Syntax ๐
Here's how you define a Click
action:
Action{
Type: core.Click,
XPath: "/html/body/button",
}
Parameters ๐ ๏ธ
Type
: Should be set tocore.Click
.XPath
: The XPath of the element you want to click on.
Example ๐
Here's a simple example that clicks a button:
Action{
Type: core.Click,
XPath: "/html/body/button",
}
Conclusion ๐
The Click
action is straightforward and essential for interacting with web pages. It's one of the building blocks of web scraping with Go-Ski.
For the complete example, you can check out the Go-Ski GitHub Repository (opens in a new tab).