After adding some input and pressing a button on the targeted page, a JS script will run which will result in (among other things) a text displayed within the page.
The "$I->see" line is the very last part of a longer test which up to that point is successful.
- triple-checked naming, syntax or spelling errors;
- tried using both CSS and XPath to the text;
- tried using Locator (but failed miserably due to not knowing exactly how to set it up with Webdriver);
The error I keep getting in the terminal is:
Element located either by name, CSS or XPath element with was not found.
Webpage paragraph part:
<div class="doc-remote-add" style="background-color: rgb(250, 255, 189); border-color: rgb(247, 218, 56);">
<b>Important Delivery Info</b>
<br/>
The text I am searching for with codeception is here (no, there is no <p>).
</div>
If nothing else, can anyone write a decent Locator configuration plan? The use \Codeception\Util\Locator;
from the official page isn't really cutting it.