Added Appium host and port config
This commit is contained in:
@@ -24,6 +24,8 @@ class AppiumFactory extends Selenium2Factory
|
|||||||
->children()
|
->children()
|
||||||
->scalarNode('browser')->defaultValue('remote')->end()
|
->scalarNode('browser')->defaultValue('remote')->end()
|
||||||
->append($this->getCapabilitiesNode())
|
->append($this->getCapabilitiesNode())
|
||||||
|
->scalarNode('appium_host')->defaultValue(getenv('APPIUM_HOST'))->end()
|
||||||
|
->scalarNode('appium_port')->defaultValue(getenv('APPIUM_PORT'))->end()
|
||||||
->end()
|
->end()
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
@@ -33,7 +35,7 @@ class AppiumFactory extends Selenium2Factory
|
|||||||
*/
|
*/
|
||||||
public function buildDriver(array $config)
|
public function buildDriver(array $config)
|
||||||
{
|
{
|
||||||
$host = '0.0.0.0:4723';
|
$host = $config['appium_host'].":".$config['appium_port'];
|
||||||
|
|
||||||
$config['wd_host'] = sprintf('%s/wd/hub', $host);
|
$config['wd_host'] = sprintf('%s/wd/hub', $host);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user