Closed hobin2017 closed 3 years ago
@hobin2017 You can use the browser option to set browser. Use -b
flag followed by the browser name firefox
for firefox otr webkit
for webkit
Only valid browsers are chromium
, firefox
and webkit
.
Here a minimal example -
$ python -m playwright codegen -b firefox
Similarly for webkit it would be -
$ python -m playwright codegen -b webkit
@kumaraditya303 Can it be configuired to use the executablePath
option of playwright.sync_playwright.chromium.launch
method?
This is not currently supported. Could you share why you need it? Media codecs or something like that?
The work about codegen
is amazing. However, there is no matched browser in my computer. It would be nicer if running the demo-code succssfully after pip install playwright
.
@hobin2017 You can install the browsers using python -m playwright install
Is it possible to change the device to mobile?
@quidnu yes, you can specify it with the --device
parameter, see here for examples: https://github.com/microsoft/playwright-cli#emulate-devices
Looks like the issue was resolved, please open new bugs if there are still problems!
This is not currently supported. Could you share why you need it? Media codecs or something like that?
cuz, some cookies and plugins have install on that google chrome.
The version of chrome browser is 86.0.4240.198. The command below does not have the browser-related option.