()
| 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. |
no outgoing calls
no test coverage detected