Larval framework upated to v5.6.33
Updated laravel frameowrk version to as suggested for security patch update which was released in v5.6.30
This commit is contained in:
@@ -19,6 +19,7 @@ trait WaitsForElements
|
||||
* @param Closure $callback
|
||||
* @param int $seconds
|
||||
* @return $this
|
||||
* @throws \Facebook\WebDriver\Exception\TimeOutException
|
||||
*/
|
||||
public function whenAvailable($selector, Closure $callback, $seconds = null)
|
||||
{
|
||||
@@ -31,6 +32,7 @@ trait WaitsForElements
|
||||
* @param string $selector
|
||||
* @param int $seconds
|
||||
* @return $this
|
||||
* @throws \Facebook\WebDriver\Exception\TimeOutException
|
||||
*/
|
||||
public function waitFor($selector, $seconds = null)
|
||||
{
|
||||
@@ -45,6 +47,7 @@ trait WaitsForElements
|
||||
* @param string $selector
|
||||
* @param int $seconds
|
||||
* @return $this
|
||||
* @throws \Facebook\WebDriver\Exception\TimeOutException
|
||||
*/
|
||||
public function waitUntilMissing($selector, $seconds = null)
|
||||
{
|
||||
@@ -65,6 +68,7 @@ trait WaitsForElements
|
||||
* @param string $text
|
||||
* @param int $seconds
|
||||
* @return $this
|
||||
* @throws \Facebook\WebDriver\Exception\TimeOutException
|
||||
*/
|
||||
public function waitForText($text, $seconds = null)
|
||||
{
|
||||
@@ -79,12 +83,13 @@ trait WaitsForElements
|
||||
* @param string $link
|
||||
* @param int $seconds
|
||||
* @return $this
|
||||
* @throws \Facebook\WebDriver\Exception\TimeOutException
|
||||
*/
|
||||
public function waitForLink($link, $seconds = null)
|
||||
{
|
||||
return $this->waitUsing($seconds, 100, function () use ($link) {
|
||||
return $this->seeLink($link);
|
||||
});
|
||||
}, "Waited %s seconds for link [{$link}].");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -93,10 +98,11 @@ trait WaitsForElements
|
||||
* @param string $path
|
||||
* @param int $seconds
|
||||
* @return $this
|
||||
* @throws \Facebook\WebDriver\Exception\TimeOutException
|
||||
*/
|
||||
public function waitForLocation($path, $seconds = null)
|
||||
{
|
||||
return $this->waitUntil("window.location.pathname == '{$path}'", $seconds);
|
||||
return $this->waitUntil("window.location.pathname == '{$path}'", $seconds, "Waited %s seconds for location [{$path}].");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -106,10 +112,11 @@ trait WaitsForElements
|
||||
* @param array $parameters
|
||||
* @param int $seconds
|
||||
* @return $this
|
||||
* @throws \Facebook\WebDriver\Exception\TimeOutException
|
||||
*/
|
||||
public function waitForRoute($route, $parameters = [], $seconds = null)
|
||||
{
|
||||
return $this->waitForLocation(route($route, $parameters), $seconds);
|
||||
return $this->waitForLocation(route($route, $parameters, false), $seconds);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -117,9 +124,11 @@ trait WaitsForElements
|
||||
*
|
||||
* @param string $script
|
||||
* @param int $seconds
|
||||
* @param string $message
|
||||
* @return $this
|
||||
* @throws \Facebook\WebDriver\Exception\TimeOutException
|
||||
*/
|
||||
public function waitUntil($script, $seconds = null)
|
||||
public function waitUntil($script, $seconds = null, $message = null)
|
||||
{
|
||||
if (! Str::startsWith($script, 'return ')) {
|
||||
$script = 'return '.$script;
|
||||
@@ -131,7 +140,7 @@ trait WaitsForElements
|
||||
|
||||
return $this->waitUsing($seconds, 100, function () use ($script) {
|
||||
return $this->driver->executeScript($script);
|
||||
});
|
||||
}, $message);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -157,6 +166,7 @@ trait WaitsForElements
|
||||
* @param Closure $callback
|
||||
* @param int $seconds
|
||||
* @return $this
|
||||
* @throws \Facebook\WebDriver\Exception\TimeOutException
|
||||
*/
|
||||
public function waitForReload($callback = null, $seconds = null)
|
||||
{
|
||||
@@ -181,7 +191,7 @@ trait WaitsForElements
|
||||
* @param Closure $callback
|
||||
* @param string|null $message
|
||||
* @return $this
|
||||
* @throws TimeOutException
|
||||
* @throws \Facebook\WebDriver\Exception\TimeOutException
|
||||
*/
|
||||
public function waitUsing($seconds, $interval, Closure $callback, $message = null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user