Skip to content

add withVision arg in Click #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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