Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined index: secure #51

Open
thuyhyvg opened this issue Nov 6, 2019 · 1 comment
Open

Undefined index: secure #51

thuyhyvg opened this issue Nov 6, 2019 · 1 comment

Comments

@thuyhyvg
Copy link

thuyhyvg commented Nov 6, 2019

Hello,

I am using your code sample:

require_once('PHPUnit/Extensions/AppiumTestCase.php');
require_once('PHPUnit/Extensions/AppiumTestCase/Element.php');

class MySuperTests extends PHPUnit_Extensions_AppiumTestCase
{
    public static $browsers = array(
        array(
            'local' => true,
            'port' => 4723,
            'browserName' => '',
            'desiredCapabilities' => array(
                'app' => APP_PATH
            )
        )
    );

    public function testStuff()
    {
        $element = $this->byAccessibilityId('Element on screen');

        $this->assertInstanceOf('PHPUnit_Extensions_AppiumTestCase_Element', $element);
    }
}

The following error occurred: Undefined index secure.
I think it was at fault appium/php-client/PHPUnit/Extensions/AppiumTestCase/SessionStrategy/Isolated.php@session line 24. 'secure' does not exist in variable parameters when start session.

Can you help me ?

@KazuCocoa
Copy link

You probably can use newer phpunit/phpunit-selenium to avoid it.
i.e.: #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants