Giter Club home page Giter Club logo

Comments (7)

KazuCocoa avatar KazuCocoa commented on June 12, 2024 1

No, appium/appium-xcuitest-driver#2366 fixes it. The devicectl command silently ignore arguments in some wrong order case. The fix modify the order to make it work properly

from appium.

saikrishna321 avatar saikrishna321 commented on June 12, 2024

can confirm WDA is launched in the device successfully.

[XCUITestDriver@9ab2 (aaccdfbf)] WDA is not listening at 'http://127.0.0.1:9900/'
[XCUITestDriver@9ab2 (aaccdfbf)] Event 'wdaStartFailed' logged at 1711510404398 (11:33:24 GMT+0800 (Singapore Standard Time))
[XCUITestDriver@9ab2 (aaccdfbf)] Error: Failed to start the preinstalled WebDriverAgent in 60000 ms. The WebDriverAgent might not be properly built or the device might be locked. The 'appium:wdaLaunchTimeout' capability modifies the timeout.
[XCUITestDriver@9ab2 (aaccdfbf)]     at WebDriverAgent._launchViaDevicectl (/Users/saikrishna/Downloads/git/appium-device-farm/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/webdriveragent.js:330:13)
[XCUITestDriver@9ab2 (aaccdfbf)]     at runMicrotasks (<anonymous>)
[XCUITestDriver@9ab2 (aaccdfbf)]     at processTicksAndRejections (node:internal/process/task_queues:96:5)
[XCUITestDriver@9ab2 (aaccdfbf)]     at WebDriverAgent.launchWithPreinstalledWDA (/Users/saikrishna/Downloads/git/appium-device-farm/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/webdriveragent.js:357:9)
[XCUITestDriver@9ab2 (aaccdfbf)]     at WebDriverAgent.launch (/Users/saikrishna/Downloads/git/appium-device-farm/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/webdriveragent.js:411:14)
[XCUITestDriver@9ab2 (aaccdfbf)]     at /Users/saikrishna/Downloads/git/appium-device-farm/node_modules/appium-xcuitest-driver/lib/driver.js:822:34
[XCUITestDriver@9ab2 (aaccdfbf)]     at wrapped (/Users/saikrishna/Downloads/git/appium-device-farm/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13)
[XCUITestDriver@9ab2 (aaccdfbf)]     at retry (/Users/saikrishna/Downloads/git/appium-device-farm/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13)
[XCUITestDriver@9ab2 (aaccdfbf)]     at retryInterval (/Users/saikrishna/Downloads/git/appium-device-farm/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10)
[XCUITestDriver@9ab2 (aaccdfbf)]     at /Users/saikrishna/Downloads/git/appium-device-farm/node_modules/appium-xcuitest-driver/lib/driver.js:812:7
[XCUITest] The executable name for the bundle id 'atd.pro' was 'WebDriverAgentRunner-Runner'

from appium.

KazuCocoa avatar KazuCocoa commented on June 12, 2024

It looks like the launching argument order should be:

% xcrun devicectl device process launch --device 00008020-000E5CDA0A23002E --terminate-existing --environment-variables '{"USE_PORT":"9900","WDA_PRODUCT_BUNDLE_IDENTIFIER":"com.trident.WebDriverAgentRunner.xctrunner"}' com.trident.WebDriverAgentRunner.xctrunner

I tested with the caps, but modified the order as part of pr. No error occurred in the modification so i thought it worked but the command was order sensitive...

from appium.

saikrishna321 avatar saikrishna321 commented on June 12, 2024

@KazuCocoa You mean launch WDA n then we port forward?

from appium.

KazuCocoa avatar KazuCocoa commented on June 12, 2024

7.6.1 should be ok

from appium.

saikrishna321 avatar saikrishna321 commented on June 12, 2024

@KazuCocoa I have "appium:mjpegServerPort": 8900 https://gist.github.com/saikrishna321/d2b4f34ec6e3840ae00e1cea7b5011c6 and I don't see a portforward happening for this.

from appium.

KazuCocoa avatar KazuCocoa commented on June 12, 2024

I think Appium takes care the portforward for video stream only during recording.
https://github.com/appium/appium-xcuitest-driver/blob/be49758ecf1e7def8b148c4f2ead7975c83e03f5/lib/commands/recordscreen.js#L58-L61

from appium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.