mirror of
https://github.com/web-infra-dev/midscene.git
synced 2025-12-06 20:07:16 +00:00
* feat(cache): The cache is generalized to support Puppeteers and mobile terminals * chore: update cache test * chore: update cache test * chore: update cache test * docs: update cache doc * chore: update ai test command * chore: update ai test command * chore: update ai test command * chore: optimize cache logic * chore: update get dir path logic * chore: update get dir path logic
12 lines
297 B
TypeScript
12 lines
297 B
TypeScript
import { AppiumPage } from '@/appium';
|
|
import type { Capabilities } from '@wdio/types';
|
|
import { remote } from 'webdriverio';
|
|
|
|
export async function launchPage(
|
|
opt: Capabilities.WebdriverIOConfig,
|
|
): Promise<AppiumPage> {
|
|
const driver = await remote(opt);
|
|
|
|
return new AppiumPage(driver);
|
|
}
|