Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function execute(WebDriverElement $testElement = null) |
||
27 | { |
||
28 | if ($testElement instanceof WebDriverElement) { |
||
29 | $this->webDriver->wait()->until(ExpectedCondition::elementRemoved($testElement)); |
||
|
|||
30 | } |
||
31 | |||
32 | $this->webDriver->wait()->until(ExpectedCondition::elementExists($this->theme->getGuaranteedPageLoadedElementDisplayedXpath(), WebDriver::BY_XPATH)); |
||
33 | $element = $this->webDriver->byXpath($this->theme->getGuaranteedPageLoadedElementDisplayedXpath()); |
||
34 | $this->webDriver->wait()->until(ExpectedCondition::visibilityOf($element)); |
||
35 | } |
||
36 | |||
38 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: