forked from enviPath/enviPy
Current Dev State
This commit is contained in:
29
static/js/ketcher2/node_modules/webdriverio/lib/protocol/elementIdLocationInView.js
generated
vendored
Normal file
29
static/js/ketcher2/node_modules/webdriverio/lib/protocol/elementIdLocationInView.js
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
/**
|
||||
*
|
||||
* Determine an element's location on the screen once it has been scrolled into view.
|
||||
*
|
||||
* *Note:* This is considered an internal command and should only be used to determine
|
||||
* an element's location for correctly generating native events.
|
||||
*
|
||||
* Depcrecated command, please use `elementIdRect`.
|
||||
*
|
||||
* @param {String} ID ID of a WebElement JSON object to route the command to
|
||||
* @return {Object} The X and Y coordinates for the element (`{x:number, y:number}`)
|
||||
*
|
||||
* @see https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidlocation_in_view
|
||||
* @type protocol
|
||||
* @deprecated
|
||||
*
|
||||
*/
|
||||
|
||||
import { ProtocolError } from '../utils/ErrorHandler'
|
||||
import depcrecate from '../helpers/depcrecationWarning'
|
||||
|
||||
export default function elementIdLocationInView (id) {
|
||||
if (typeof id !== 'string' && typeof id !== 'number') {
|
||||
throw new ProtocolError('number or type of arguments don\'t agree with elementIdLocationInView protocol command')
|
||||
}
|
||||
|
||||
depcrecate('elementIdLocationInView')
|
||||
return this.requestHandler.create(`/session/:sessionId/element/${id}/location_in_view`)
|
||||
}
|
||||
Reference in New Issue
Block a user