forked from enviPath/enviPy
Current Dev State
This commit is contained in:
48
static/js/ketcher2/node_modules/webdriverio/lib/protocol/gridProxyDetails.js
generated
vendored
Normal file
48
static/js/ketcher2/node_modules/webdriverio/lib/protocol/gridProxyDetails.js
generated
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
/**
|
||||
*
|
||||
* Get the details of the Selenium Grid node running a session
|
||||
*
|
||||
* <example>
|
||||
:grid.js
|
||||
it('should get grid proxy details', function () {
|
||||
var details = browser.gridProxyDetails(proxyId)
|
||||
console.log(details);
|
||||
// {
|
||||
// success: true,
|
||||
// msg: "proxy found !",
|
||||
// id: "MacMiniA10",
|
||||
// request: {
|
||||
// ...
|
||||
// configuration: {
|
||||
// ...
|
||||
// },
|
||||
// capabilities: [
|
||||
// {
|
||||
// ...
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
// }
|
||||
});
|
||||
* </example>
|
||||
*
|
||||
* @type grid
|
||||
*/
|
||||
|
||||
import { ProtocolError } from '../utils/ErrorHandler'
|
||||
|
||||
export default function gridProxyDetails (proxyId) {
|
||||
/*!
|
||||
* parameter check
|
||||
*/
|
||||
if (typeof proxyId !== 'string') {
|
||||
throw new ProtocolError('The gridProxyDetails command needs a proxyId to work with.')
|
||||
}
|
||||
|
||||
return this.requestHandler.create({
|
||||
path: `/proxy?id=${proxyId}`,
|
||||
method: 'GET',
|
||||
requiresSession: false,
|
||||
gridCommand: true
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user