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
Either .frame() or .frame(undefined) or .frame(null) is supposed to switch browser context to default top-level one but receives missing 'id' or no such frame error with or without selenium server.
showMissingIdError: (client)=>{constelementOutSideOfIFrame='#Result_2';// Title 'Result' just above iframe element on pageconstiframeId='frame_Example2';constdeeperIframeId='Example2';constelementWithinIFrame='#mapDiv';client.url(client.launch_url).waitForElementVisible(elementOutSideOfIFrame).frame(iframeId).frame(deeperIframeId).waitForElementVisible(elementWithinIFrame).frame(null).// Error while running .switchToFrame() protocol action: invalid argument: missing 'id'frame().// Error while running .switchToFrame() protocol action: invalid argument: missing 'id'waitForElementVisible(elementOutSideOfIFrame).waitForElementNotVisible(elementWithinIFrame);}
Verbose nightwatch output
→Running command: frame()RequestPOST/session/3e9e8d20ed874049d3ff2f79b3988324/frame{id: 'null'}Response200POST/session/3e9e8d20ed874049d3ff2f79b3988324/frame(6ms){sessionId: '3e9e8d20ed874049d3ff2f79b3988324',status: 8,value:
{message: 'no such frame',error:
[' (Session info: chrome=72.0.3626.121)',' (Driver info: chromedriver=2.46.628411 (3324f4c8be9ff2f70a05a30ebc72ffb013e1a71e),platform=Mac OS X 10.14.1 x86_64)']}}Errorwhilerunning.switchToFrame()protocol action: nosuchframe→Completedcommandframe()(6ms)
nightwatch 1.0.19
chrome=72.0.3626.121
chromedriver=2.46.628411 (3324f4c8be9ff2f70a05a30ebc72ffb013e1a71e),platform=Mac OS X 10.14.1 x86_64)
macOS Majove 10.14.1 (18B75)
Node v8.11.2
Selenium not used
The text was updated successfully, but these errors were encountered:
liunate
added a commit
to liunate/nightwatch
that referenced
this issue
Mar 8, 2019
What the issue is
Either
.frame()
or.frame(undefined)
or.frame(null)
is supposed to switch browser context to default top-level one but receivesmissing 'id'
orno such frame
error with or without selenium server.The line
nightwatch/lib/transport/jsonwire/actions.js
Line 154 in 848b134
POST
with{ id: null }
in request body given either.frame
arguments listed above per W3C spec https://www.w3.org/TR/webdriver/#switch-to-frame:Simple test showing the issue:
Repo
https://github.com/liunate/nightwatch-issue-frame-missing-id
Nightwatch Config
Test Case
Verbose nightwatch output
versions
nightwatch 1.0.19
chrome=72.0.3626.121
chromedriver=2.46.628411 (3324f4c8be9ff2f70a05a30ebc72ffb013e1a71e),platform=Mac OS X 10.14.1 x86_64)
macOS Majove 10.14.1 (18B75)
Node v8.11.2
Selenium not used
The text was updated successfully, but these errors were encountered: