Skip to content

Commit 2c305c4

Browse files
authored
add docs on start activity with args
1 parent 3d3c957 commit 2c305c4

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,23 @@ launch the activity's application.
531531
driver.start_activity('com.foo.app', '.MyActivity')
532532
```
533533

534+
You can also pass additional arguments to start an activity with intent as below,
535+
536+
```python
537+
driver.start_activity('com.foo.app', '.MainActivity', app_wait_package='your package name')
538+
```
539+
540+
and the list of additional arguments that can be passed are,
541+
542+
```python
543+
'app_wait_package'
544+
'app_wait_activity'
545+
'intent_action'
546+
'intent_category'
547+
'intent_flags'
548+
'optional_intent_arguments'
549+
'dont_stop_app_on_reset'
550+
```
534551

535552
#### Retrieving application strings
536553

0 commit comments

Comments
 (0)