MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / attemptToSwitchFrames

Function attemptToSwitchFrames

javascript/selenium-webdriver/lib/until.js:87–101  ·  view source on GitHub ↗
(driver, frame)

Source from the content-addressed store, hash-verified

85 return new Condition('to be able to switch to frame', condition)
86
87 function attemptToSwitchFrames(driver, frame) {
88 return driver
89 .switchTo()
90 .frame(frame)
91 .then(
92 function () {
93 return true
94 },
95 function (e) {
96 if (!(e instanceof error.NoSuchFrameError)) {
97 throw e
98 }
99 },
100 )
101 }
102}
103
104/**

Callers 1

ableToSwitchToFrameFunction · 0.85

Calls 2

frameMethod · 0.65
switchToMethod · 0.65

Tested by

no test coverage detected