Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
getText() returns empty when using the step to verify the page contains certain text (BrowserStack Edge) #109
Used the step to verify that the page contains the certain text but failed when testing in BrowserStack Edge. The step works fine in Firefox, Chrome, and Safari at BrowserStack.
There is no available env for me to test further in local Edge browser and MicrosoftWebDriver.
Tested in BrowserStack
added a commit
Aug 6, 2017
Just completed the retesting on Edge with Iridium 1.0.41. And, found that the new way (getAttribute("innerText")) works fine in Chrome, Safari, Firefox as the previous way getText(). But, in Edge, it still returned empty text or null.
I do not think it is a defect or issue of Iridium and it seems it is an issue of EdgeWebDriver. So, I will close this issue later and will use the more proper step "wait several seconds for the element found by" instead for the cross-browser testing (so, getBy() instead)
I am not sure whether I should report a defect at https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/.