You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to figure out why my script is unable to click on a button even though it is clearly visible and within screen view. This is the only exception I am getting:
element not interactable
(Session info: chrome=98.0.4758.102)
(Driver info: chromedriver=98.0.4758.102 (273bf7ac8c909cde36982d27f66f3c70846a3718-refs/branch-heads/4758@{#1151}),platform=Windows NT 10.0.19043 x86_64) (WebDriver\Exception\ElementNotVisible)
Here's the code that verifies the element and its visibility
publicfunctiongetElement($selector, $type = 'xpath', $autodetect = true, $logMessage = true)
{
if ($autodetect) {
$selectorData = $this->detectSelectorType($selector, $type);
$type = $selectorData[0];
$selector = $selectorData[1];
}
$element = $this->getSession()->getPage()->find($type, $selector);
$this->log("Selector: ".$selector);
if (empty($element)) {
$this->lastElement = false;
$errorMsg = "No html element found for {$type} selector: {$selector}";
if ($logMessage) $this->debug($errorMsg);
thrownewException($errorMsg);
} elseif ($logMessage) {
$this->debug("Found element for {$type} selector: {$selector}");
}
$this->lastElement = $element;
$this->log("Element read for clicking");
return$element;
}
Trying to figure out why my script is unable to click on a button even though it is clearly visible and within screen view. This is the only exception I am getting:
Here's the code that verifies the element and its visibility
Here's the call to click
I'm running on chrome 98.0.4758.102, selenium 3.141 and the following behat/mink versions
I've already tried various implicit and explicit waits / scrolls but still no go
The text was updated successfully, but these errors were encountered: