From 97b1fcbba8a482de54591d169c526d09fbeaabdd Mon Sep 17 00:00:00 2001 From: admin <462826@qq.com> Date: Wed, 8 Apr 2020 08:40:57 +0800 Subject: [PATCH] support appium test --- demo/selenium/chrome.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/selenium/chrome.php b/demo/selenium/chrome.php index 45738f40..4bdcb9b3 100644 --- a/demo/selenium/chrome.php +++ b/demo/selenium/chrome.php @@ -19,7 +19,7 @@ use Facebook\WebDriver\Chrome\ChromeOptions; include 'vendor/autoload.php'; if (isWindows()) { // launch build-in selenium driver to test - $command = 'start /B ' . dirname(__FILE__, 3) . '\runtime\selenium\chrome80.exe >log.txt 2>&1'; + $command = 'start ' . dirname(__FILE__, 3) . '\runtime\selenium\chrome80.exe ^>log.txt ^>2^&1'; pclose(popen($command, 'r')); // exec("CHCP 936"); @@ -35,7 +35,7 @@ $desiredCapabilities->setCapability(ChromeOptions::CAPABILITY, $options); $driver = RemoteWebDriver::create($host, $desiredCapabilities); $driver->get("https://www.baidu.com"); $html= $driver->getPageSource(); -print_r("$html \n"); +// print_r("$html \n"); $keywordsInput = $driver->findElement(WebDriverBy::id('kw')); $keywordsInput->clear(); -- GitLab