0
Codeception有一個執行硒函數的方法。我需要一個變量,站點名稱傳輸功能,它執行這個方法裏面,所以我的代碼codeception - 在executeInSelenium方法中傳遞變量
$I->executeInSelenium(function(\WebDriver $webdriver) {
$webdriver->get('http://google.com');
});
可能是這樣的:
$I->goToSite('http://google.com');