Skip to content

Getting error when running generate_locators even if LambdaTest Session is created SuccessfullyΒ #10

@shubhgoyal-beep

Description

@shubhgoyal-beep

The LT
βœ… Capabilities loaded successfully

πŸ“€ 1. select_platform...

❌ MCP stderr for select_platform: [FastMCP warning] could not infer client capabilities
βœ… select_platform completed (raw output)

πŸ“€ 2. create_lambdatest_session...

❌ MCP stderr for create_lambdatest_session: [FastMCP warning] could not infer client capabilities
βœ… create_lambdatest_session completed (raw output)
🟒 Session creation result (raw):

{
"result": "All resources registered\nAll tools registered\nStarting
Jarvis Appium MCP Server...\nServer started with stdio
transport\nWaiting for client connections...\nConnecting to LambdaTest
cloud platform...\nCreating new ANDROID session on LambdaTest cloud with
capabilities: {\n "platformName": "Android",\n
"appium:automationName": "UiAutomator2",\n "appium:deviceName": "Galaxy
S24",\n "appium:platformVersion": "14",\n "lt:options": {\n
"username": "[USERNAME_REDACTED]",\n
"accessKey": "[ACCESS_KEY_REDACTED]",\n "build": "test QE MCP Build Test",\n
"name": "Android Mobile Test",\n "isRealMobile": true,\n
"devicelog": true,\n "visual": true,\n "video": true,\n
"autoAcceptAlerts": true,\n "autoGrantPermissions": true,\n
"timezone": "UTC",\n "app": "[APP_URL_REDACTED]"\n
}\n}\nANDROID session created successfully on LambdaTest with ID:
[SESSION_ID_REDACTED]\n{"result":{"content":[{"text":"ANDROID
session created successfully on LambdaTest Cloud!\n\nSession
Details:\n- Session ID: [SESSION_ID_REDACTED]\n-
Platform: Android\n- Device: Galaxy S24\n- Platform Version: 14\n-
Automation: UiAutomator2\n- Build: test QE MCP Build Test\n- Test Name:
Android Mobile Test\n\nView your test execution at:
https://automation.lambdatest.com/build/test QE MCP Build
Test\n\nLambdaTest Features Enabled:\n- Device Logs: true\n- Visual
Testing: true\n- Video Recording: true\n- Auto Accept Alerts: true\n-
Auto Grant Permissions:
true","type":"text"}]},"jsonrpc":"2.0","id":2}\n"
}

⏳ Waiting 60 seconds for session and app to be ready...

πŸ“€ 3. generate_locators...

❌ MCP stderr for generate_locators: Error getting page source: Error: No active driver session. Please create a session first.

at Object.execute
(file:///[INTERNAL_PATH_REDACTED]/src/tools/locators.ts:24:17)

at
file:///[INTERNAL_PATH_REDACTED]/src/FastMCP.ts:1269:41

at processTicksAndRejections (node:internal/process/task_queues:105:5)

[FastMCP warning] could not infer client capabilities
βœ… generate_locators completed (raw output)
πŸ”Ž generate_locators result:

{
"result": "All resources registered\nAll tools registered\nStarting
Jarvis Appium MCP Server...\nServer started with stdio
transport\nWaiting for client
connections...\n{"method":"notifications/message","params":{"data":{"message":"Getting
page
source"},"level":"info"},"jsonrpc":"2.0"}\n{"result":{"content":[{"text":"Error:
Error: Failed to get page source: No active driver session. Please
create a session
first.","type":"text"}],"jsonrpc":"2.0","id":3}\n"
Attached Appium Logs as well from LambdaTest in Appium logs as well do not see any command for generate locator

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions