我已经在 stackoverflow 上搜索了所有帖子,但没有成功。
这有效:
$I->amOnUrl('https://www.youtube.com');
$I->amOnPage('/watch?v=l03aH7TWLck');
$I->click('button[is="paper-icon-button-light"][id="button"]');
$I->wait(2);
$I->makeScreenshot('snap');
$I->see('Report'); <--Success
$I->click('Report'); <--Success
但这并不
$I->amOnUrl('https://www.youtube.com');
$I->amOnPage('/watch?v=l03aH7TWLck');
$I->click('button[is="paper-icon-button-light"][id="button"]');
$I->wait(2);
$I->makeScreenshot('snap');
$I->see('Open transcript'); <--Success
$I->click('Open transcript'); <--Error
这是控制台抛出的错误:
TranscripcionVideoCept:
Test tests/acceptance/TranscripcionVideoCept.php
Step Click "Open transcript"
Fail Link or Button or CSS or XPath element with 'Open transcript' was not found.
This is the snap image from makeScreenshot. As you can see, the 'Open transcript' link exists:
So, why works on first but doesn't on second case?
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)