switchToIframe() function is throwing an error starting from version 0.22.X (working fine on 0.20.5) #2956
Labels
STATE: Auto-locked
An issue has been automatically locked by the Lock bot.
SYSTEM: hammerhead
TYPE: bug
The described behavior is considered as wrong (bug).
Are you requesting a feature or reporting a bug?
Bug
What is the current behavior?
SwitchToIframe is triggering an error while it did not before on the previous versions. Was working fine on version 0.20.5 but the problem is detected started from the version 0.22.X.
Error message:
`2) Unhandled promise rejection:
And
TypeError: i.resolversMap[t.id] is not a function at t.<anonymous> (http://localhost:1337/hammerhead.js:2:18945) at t.e.emit (http://localhost:1337/hammerhead.js:10:6592) at t._onMessage (http://localhost:1337/hammerhead.js:3:26593) at n (http://localhost:1337/hammerhead.js:10:9156) at n (http://localhost:1337/hammerhead.js:3:27716) at http://localhost:1337/hammerhead.js:3:19488
What is the expected behavior?
SwitchtoIframe should work and switch to the designed one
How would you reproduce the current behavior (if this is a bug)?
Just call the switchToIframe function
Provide the test code and the tested page URL (if applicable)
await t
.switchToIframe('#sas_52199 iframe')
.expect(Selector('img:not([src*="xxxxxxxx.com"])').exists).ok()
.switchToMainWindow();
Specify your
The text was updated successfully, but these errors were encountered: