MCPcopy
hub / github.com/codeceptjs/CodeceptJS / _buildAppiumEndpoint

Method _buildAppiumEndpoint

lib/helper/Appium.js:407–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

405 }
406
407 _buildAppiumEndpoint() {
408 const { protocol, port, hostname, path } = this.browser.options
409 // Ensure path does NOT end with a slash to prevent double slashes
410 const normalizedPath = path.replace(/\/$/, '')
411 // Build path to Appium REST API endpoint
412 return `${protocol}://${hostname}:${port}${normalizedPath}/session/${this.browser.sessionId}`
413 }
414
415 /**
416 * Helper method to safely call isDisplayed() on mobile elements.

Callers 7

removeAppMethod · 0.95
resetAppMethod · 0.95
seeOrientationIsMethod · 0.95
setOrientationMethod · 0.95
hideDeviceKeyboardMethod · 0.95
tapMethod · 0.95
clickMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected