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

Function execute

javascript/selenium-webdriver/test/remote_test.js:100–110  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

98 it('sends correct command with eventType only', function () {
99 const fakeDriver = {
100 execute(command) {
101 assert.strictEqual(command.getName(), cmd.Name.FIRE_SESSION_EVENT)
102 const params = command.getParameters()
103 assert.strictEqual(params['eventType'], 'test:started')
104 assert.strictEqual(params['payload'], undefined)
105 return Promise.resolve({
106 success: true,
107 eventType: 'test:started',
108 timestamp: '2024-01-15T10:30:00Z',
109 })
110 },
111 }
112 const { WebDriver } = require('selenium-webdriver')
113 // Directly test the command structure

Callers

nothing calls this directly

Calls 2

getNameMethod · 0.65
getParametersMethod · 0.45

Tested by

no test coverage detected