gemini / appium-php-client
v0.2.2
2021-09-30 08:19 UTC
Requires
- php: >=7.4
- guzzlehttp/guzzle: ^6.3|^7.0
- phpunit/phpunit: ^9.5
- phpunit/phpunit-selenium: ^9.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- mockery/mockery: ^1.0
- phpstan/phpstan: ^0.12
- symfony/var-dumper: ^5.1
README
安装
composer create-project gemini/appium-php-client
使用
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace HyperfTest\Cases; use Appium\AppiumTestCase\Element; use Appium\AppiumTestCase; /** * @internal * @coversNothing */ class ExampleTest extends AppiumTestCase { /** * @group iOS */ public function testOpen() { $steps = [ fn () => $this->byAccessibilityId('好')->click(), fn () => $this->byAccessibilityId('允许'), fn (Element $el) => $el->click(), fn () => $this->byAccessibilityId('LaunchLogo'), ]; $el = $this->runSteps($steps); $this->assertNotNull($el); } }