Could you help me. I use Codeception with Webdriver for my project
Codeception PHP Testing Framework v4.1.3 Powered by PHPUnit 9.0.1 by Sebastian Bergmann and contributors.
acceptance.suite.yaml:
actor: AcceptanceTester
modules:
enabled:
- WebDriver:
url: 'https://localhost:8888'
browser: chrome
clear_cookies: true
port: 4444
capabilities:
browser: chrome
goog:chromeOptions:
w3c: false
Docker:
docker run -p 4444:4444 -v /dev/shm:/dev/shm --rm selenium/standalone-chrome
I can see my localhost in Browser, but by testing i have "This site can't be reached. localhost refused to connect". Test is very simple:
<?php
class FirstCest
{
public function tryToTest(AcceptanceTester $I)
{
$I->amOnPage('/');
$I->wait(5);
$I->makeScreenshot();
I->see('Home');
}
}
thanks in advance
Aucun commentaire:
Enregistrer un commentaire