forked from enviPath/enviPy
Current Dev State
This commit is contained in:
24
static/js/ketcher2/node_modules/webdriverio/lib/protocol/frame.js
generated
vendored
Normal file
24
static/js/ketcher2/node_modules/webdriverio/lib/protocol/frame.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/**
|
||||
* Change focus to another frame on the page. If the frame id is null,
|
||||
* the server should switch to the page's default content.
|
||||
*
|
||||
* <example>
|
||||
:frame.js
|
||||
it('should switch focus to iFrame', function () {
|
||||
// Using `element` to find an iframe and providing it to `frame` method
|
||||
browser.waitForExist('iframe[name="my_iframe"]');
|
||||
var my_frame = $('iframe[name="my_iframe"]').value;
|
||||
browser.frame(my_frame);
|
||||
});
|
||||
* </example>
|
||||
*
|
||||
* @param {String|Number|null|WebElementJSONObject} id Identifier for the frame to change focus to.
|
||||
*
|
||||
* @see https://w3c.github.io/webdriver/webdriver-spec.html#switch-to-frame
|
||||
* @type protocol
|
||||
*
|
||||
*/
|
||||
|
||||
export default function frame (frameId = null) {
|
||||
return this.requestHandler.create('/session/:sessionId/frame', { id: frameId })
|
||||
}
|
||||
Reference in New Issue
Block a user