Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
inxilpro committed Mar 20, 2023
1 parent 2db85e3 commit ad366e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
10 changes: 1 addition & 9 deletions src/Browser/BrowserManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
use Facebook\WebDriver\Exception\WebDriverCurlException;
use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Facebook\WebDriver\Remote\WebDriverCapabilityType;
use Facebook\WebDriver\WebDriverBy;
use Facebook\WebDriver\WebDriverElement;
use Glhd\Dawn\Exceptions\WebDriverNotRunningException;
use Glhd\Dawn\Support\ElementResolver;
Expand Down Expand Up @@ -59,13 +57,7 @@ public function quitAll(): void

public function __call(string $name, array $arguments)
{
$result = $this->forwardDecoratedCallTo($this->driver, $name, $arguments);

// After each operation, we'll store a reference to the current DOM root so
// that at any time we can check it for staleness (to look for refreshes, for example)
// FIXME: $this->root = $this->driver->findElement(WebDriverBy::tagName('html'));

return $result;
return $this->forwardDecoratedCallTo($this->driver, $name, $arguments);
}

protected function getDriver(string $browser_id): ManagedDriver
Expand Down
2 changes: 1 addition & 1 deletion src/Browser/Concerns/HasBrowserAssertionAliases.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function assertInputPresent(string $name): static
public function assertInputMissing(string $name): static
{
return $this->assertElementStatus(
selector:"input[name='{$name}'], textarea[name='{$name}'], select[name='{$name}']",
selector: "input[name='{$name}'], textarea[name='{$name}'], select[name='{$name}']",
expect_exists: false
);
}
Expand Down
3 changes: 0 additions & 3 deletions src/Browser/Concerns/HasBrowserCommandAliases.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,19 @@
namespace Glhd\Dawn\Browser\Concerns;

use Closure;
use Facebook\WebDriver\Exception\StaleElementReferenceException;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Facebook\WebDriver\WebDriverBy;
use Facebook\WebDriver\WebDriverExpectedCondition;
use Glhd\Dawn\Browser;
use Glhd\Dawn\Browser\BrowserManager;
use Glhd\Dawn\Browser\Helpers\Livewire;
use Glhd\Dawn\Browser\Helpers\Vue;
use Glhd\Dawn\Browser\PendingWait;
use Glhd\Dawn\Support\Selector;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Js;
use Illuminate\Support\Str;
use InvalidArgumentException;
use stdClass;
use function PHPUnit\Framework\callback;

trait HasBrowserCommandAliases
{
Expand Down

0 comments on commit ad366e6

Please sign in to comment.