Thomas Landauer

Results 162 comments of Thomas Landauer

Will you merge this or can I delete it?

I just spent several hours trying to get ChromeDriver connect with a snap installation of Chromium (default on ubuntu nowadays), and the error message I got was: > [Facebook\WebDriver\Exception\WebDriverException] JSON...

Yes, please add this :-) It has been asked here too: https://stackoverflow.com/a/38855743/1668200 Reason: Since you cannot access external URL's with Functional Tests, there are only Acceptance Tests left to achieve...

Related feature requests: * https://github.com/Codeception/Codeception/issues/3423 * https://github.com/Codeception/Codeception/issues/5122 * https://github.com/Codeception/Codeception/issues/5115

This seems to be a new "feature" of WebDriver, cause with Chrome I'm getting: > [Facebook\WebDriver\Exception\ElementClickInterceptedException] element click intercepted: Element is not clickable at point (187, 2776) [SmartWait](https://codeception.com/docs/03-AcceptanceTests#SmartWait) isn't working;...

Workaround: You need to identify the element by some *attribute* (not by its text content), e.g.: ```php $I->click(['css' => 'details[id="foo"] summary']); ```

Clicking on a `` by its text isn't working too (see https://github.com/Codeception/module-webdriver/issues/21 for the reason I tried it). I tried to fix it by adding this to [WebDriver::_findClickable()](https://github.com/Codeception/module-webdriver/blob/master/src/Codeception/Module/WebDriver.php#L1051): ```php ".//label[normalize-space(.)=$locator]"...

Also, it looks like elements inside `` are always treated as they can be *seen* (i.e. `dontSeeElement()` fails), no matter if the `` is open or not. But I haven't...

Workaround for `seeElement()` and `dontSeeElement()` with ``: ```php $open = $I->grabAttributeFrom(['css' => 'details.foo'], 'open'); // Assert that is closed: $I->assertNull($open); // Assert that is open: $I->assertSame('true', $open); ```

Hold on! `$I->pressKey(['css' => 'body'], \Facebook\WebDriver\WebDriverKeys::F5);` isn't working! I'm now doing it with `$I->executeJS('location.reload();'); ` - is there a better way?