API Reference
Click

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 to core.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).