10.9.06.0.07.2.10ChromeWindow 10When using expected conditions on a disabled input the following EC:s gives you false even though the element is really there (verified visually):
presenceOf
visibilityOf
elementToBeClickable
Also textToBePresentInElementValue doesn't match even though it should
Same code worked fine before upgrading.
Steps to reproduce:
<input class="field" value="test" disabled />
await browser.wait(ExpectedConditions.visibilityOf(element(by.css('.field'))), 30000);
Edit: I might add that textToBePresentInElementValue doens't work, but element.getAttribute('value') does. So it doesn't seem related to getting the actual value.
@cnishina: Would you mind take a look at this?
@kyliau @alan-agius4 : I noticed you guys have started to make commits in this repo! That's awesome. When we did a POC to try to move to Protractor 6 this is what stopped us. Please take a look whenever you have the chance and thanks for you contributions.
Hi @JonWallsten, protractor version 6, is deprecated.
Unless you are already on Protractor version 6 you shouldn鈥檛 try to use it.
@alan-agius4 I'm aware. We did this POC last year. But I doubt this bug has been fixed since. Hence the mention on you guys. I can try to recreate the behavior in 7.x.x and update the bug. If I recall correctly this was the major thing stopping us from proceed with the await/async upgrade. I tried to figure out myself what was happening, but got lost in the Protractor source code.
This is still an issue, I have experienced. It was working few weeks ago until I updated to latest protractor version 7.0.0
As far as I'm aware this issue was with 6 due to a alpha version of selenium driver used. Protractor 7 uses the same stable selenium driver as 5.x and appears to be mainly a code clean-up
I found root cause was test failed due to failed test when running multiple instance causing selector not found and second instance not opening the page
Most helpful comment
@cnishina: Would you mind take a look at this?