Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBrowser() target parameter select bad chrome remote interface #2560

Open
haris44 opened this issue Mar 22, 2022 · 1 comment
Open

OpenBrowser() target parameter select bad chrome remote interface #2560

haris44 opened this issue Mar 22, 2022 · 1 comment

Comments

@haris44
Copy link

haris44 commented Mar 22, 2022

Describe the bug

When openBrowser are instantiated, target ID parameters get bad remote interface (first by default, whereas an id are provided ? )

To Reproduce

Using multiple remote interface for the same device (in this case, an Android remote debugger)

[
    {
        "description": "{\"attached\":false,\"empty\":false,\"height\":1200,\"never_attached\":false,\"screenX\":0,\"screenY\":0,\"visible\":true,\"width\":1920}",
        "devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_rev/@16a0130a4eeaae21f1d55b0070aa55f247dbbf64/inspector.html?ws=127.0.0.1:9222/devtools/page/F30967F48A412C254D31E2CA62505D5C",
        "id": "F30967F48A412C254D31E2CA62505D5C",
        "title": "about:blank",
        "type": "page",
        "url": "about:blank",
        "webSocketDebuggerUrl": "ws://127.0.0.1:9222/devtools/page/F30967F48A412C254D31E2CA62505D5C"
    },
        "devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_rev/@16a0130a4eeaae21f1d55b0070aa55f247dbbf64/inspector.html?ws=127.0.0.1:9222/devtools/page/45CA75A8B7417BE4E5FFA8DACADDCF78",
        "id": "45CA75A8B7417BE4E5FFA8DACADDCF78",
        "title": "Vue App",
        "type": "page",
        "url": "http://192.168.0.163:8080/#/settings",
        "webSocketDebuggerUrl": "ws://127.0.0.1:9222/devtools/page/45CA75A8B7417BE4E5FFA8DACADDCF78"
    }
]

Chrome-remote-interface vs taiko :

 ➜  ~ chrome-remote-interface inspect 45CA75A8B7417BE4E5FFA8DACADDCF78 --local
>>>  Runtime.evaluate({expression: 'window.location.toString()'})
{
  result: { type: 'string', value: 'http://192.168.0.163:8080/#/etiquette' }
}
>>> 
(To exit, press Ctrl+C again or Ctrl+D or type .exit)
>>> 

➜   ~ taiko

Version: 1.3.2 (Chromium: 100.0.4874.0)
Type .api for help and .exit to quit

> openBrowser({target : "45CA75A8B7417BE4E5FFA8DACADDCF78",headless : false, port : 9222});
 ✔ Browser opened
>  currentURL()
'about:blank'
> 

Software version

Gauge version: 1.4.3
Plugins
-------
html-report (4.1.4)
js (2.4.0)
screenshot (0.1.0)

➜  ~ taiko -v
Version: 1.3.2 (Chromium: 100.0.4874.0) RELEASE

➜  ~ chrome-remote-interface -v 
0.31.2

@saikrishna321
Copy link
Member

Fixed in master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants