Skip to content

Commit 85d2000

Browse files
committed
add withVision arg in Click
1 parent 6136870 commit 85d2000

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

index.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ func Click(
298298
position: String = "center",
299299
includeInvisible: Bool = false,
300300
waitForLoadComplete: Bool = false,
301-
waitTime: Int = 0
301+
waitTime: Int = 0,
302+
withVision: Bool = false
302303
)
303304
```
304305

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

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

345348
## Return Value
346349

@@ -367,6 +370,10 @@ Click(at: "Styles.zip", clickType: "doubleClick")
367370
```swift
368371
Click(at: "slider", spatialRelation: "closest,right", anchorConcept: "pointer size")
369372
```
373+
- Instruction: click "slider" closest to and on the right of "pointer size"
374+
```swift
375+
Click(at: "the closest slider on the right of pointer size", withVision: true)
376+
```
370377

371378

372379

0 commit comments

Comments
 (0)