WIP
This commit is contained in:
parent
ba02e70dcc
commit
a6a0740c61
11 changed files with 466 additions and 171 deletions
|
|
@ -1,5 +1,28 @@
|
|||
def explore_app():
|
||||
manual_exploration()
|
||||
from pathlib import Path
|
||||
|
||||
try:
|
||||
from grodd_runner import grodd_runner # type: ignore
|
||||
|
||||
USE_GRODD = True
|
||||
except ModuleNotFoundError:
|
||||
USE_GRODD = False
|
||||
|
||||
|
||||
def explore_app(
|
||||
package: str,
|
||||
device: str = "emulator-5554",
|
||||
android_sdk: Path | None = None,
|
||||
):
|
||||
if USE_GRODD:
|
||||
grodd_runner(
|
||||
"grodd", device, timeout=300, package=package, android_sdk=android_sdk
|
||||
)
|
||||
|
||||
else:
|
||||
print(
|
||||
"\033[31mGrodd is not available, you need to explore the app manually\033[0m"
|
||||
)
|
||||
manual_exploration()
|
||||
|
||||
|
||||
def manual_exploration():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue