Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion index.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ func Click(
position: String = "center",
includeInvisible: Bool = false,
waitForLoadComplete: Bool = false,
waitTime: Int = 0
waitTime: Int = 0,
withVision: Bool = false
)
```

Expand Down Expand Up @@ -341,6 +342,8 @@ If true, waits for page to finish loading after the click.
### waitTime
Integer number of seconds to wait after click.

### withVision
Enable vision-language model to pinpoint and click target based on description of the target object. Screenshot permission is required.

## Return Value

Expand All @@ -367,6 +370,10 @@ Click(at: "Styles.zip", clickType: "doubleClick")
```swift
Click(at: "slider", spatialRelation: "closest,right", anchorConcept: "pointer size")
```
- Instruction: click "slider" closest to and on the right of "pointer size"
```swift
Click(at: "the closest slider on the right of pointer size", withVision: true)
```



Expand Down
Loading