Created
February 17, 2020 13:00
-
-
Save polevaultweb/189176e44a403afbdabfef749069b371 to your computer and use it in GitHub Desktop.
Using Codeception to login to Dropbox and approve permissions during oAuth2 login flow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$I->waitForText( 'Sign in to Dropbox' ); | |
$I->fillField( 'login_email', $_ENV['DROPBOX_EMAIL'] ); | |
$I->wait( 1 ); | |
$I->fillField( 'login_password', $_ENV['DROPBOX_PASSWORD'] ); | |
$I->click( [ 'class' => 'login-button' ] ); | |
$I->wait( 10 ); | |
if ( $I->seeOnPage( 'Allow' ) ) { | |
$I->click( 'Allow' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment