PHP code example of gemini / appium-php-client
1. Go to this page and download the library: Download gemini/appium-php-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gemini / appium-php-client example snippets
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @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);
}
}
composer create-project gemini/appium-php-client