Zhou xiao eafa5bfa20
feat(cache): The cache is generalized to support puppeteers and mobile terminals (#85)
* 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
2024-09-06 17:19:35 +08:00

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);
}