Wait after signing in
This commit is contained in:
@ -365,9 +365,18 @@ class InstagramRepostJob extends BrowserJob implements ShouldBeUniqueUntilProces
|
|||||||
$passwordButton = $browser->driver->findElement(WebDriverBy::xpath('//input[contains(@aria-label, "Password")]'));
|
$passwordButton = $browser->driver->findElement(WebDriverBy::xpath('//input[contains(@aria-label, "Password")]'));
|
||||||
$passwordButton->click();
|
$passwordButton->click();
|
||||||
$passwordButton->sendKeys($this->jobInfos->get("instagram_repost_account_password") . "\n");
|
$passwordButton->sendKeys($this->jobInfos->get("instagram_repost_account_password") . "\n");
|
||||||
|
sleep(5);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// Probably no need to signin
|
// Probably no need to signin
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
|
$browser->waitForText("Search", 15, true);
|
||||||
|
$this->removePopups($browser);
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
Log::error("Failed to sign in: " . $e->getMessage());
|
||||||
|
$browser->screenshot(JobDebugScreenshot::getFileName($this->jobId));
|
||||||
|
AllNotification::send(new JobDebugNotification($this->jobId, "Failed to sign in: " . $e->getMessage()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function removePopups(Browser $browser)
|
protected function removePopups(Browser $browser)
|
||||||
|
Reference in New Issue
Block a user