Comments (12)
Yes, yesterday! Let us know if it works for you in that version. Also did you install the deps via npx playwright install --with-deps
?
from playwright.
Would it be possible to provide a self-contained reproduction which we can run locally in order to reproduce the problem?
Maybe a small script/test - like a page.goto does already surface the issue?
Thanks!
from playwright.
Would it be possible to provide a self-contained reproduction which we can run locally in order to reproduce the problem?
Maybe a small script/test - like a page.goto does already surface the issue?
Thanks!
means do you want written code instead of the given screenshot with the Actual URL or something else?
from playwright.
@mxschmitt 2nd point is that as I investigated this bug.
The same test is working perfectly on Windows 10 OS.
But this test isn't working in the above Environment configurations as I mentioned over in this bug report
from playwright.
I tried reproducing on v1.44.0 on Ubuntu 22.04 but was not able to reproduce. Could you try updating to v1.44.0?
if it still fails, could you run the following?
DEBUG=pw:browser npx playwright test
this should give us some more debug output
from playwright.
oh my god 1.44.0 launched?
from playwright.
@mxschmitt I have update playwright 1.43 to 1.44 latest version but my test is still not working in web kit browser.
from playwright.
could you run the following?
DEBUG=pw:browser npx playwright test
this should give us some more debug output about the browser launch
from playwright.
DEBUG=pw:browser npx playwright test m2d2.spec.ts
Running 3 tests using 3 workers
[chromium] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading
pw:browser <launching> /home/bhushan/.cache/ms-playwright/chromium-1117/chrome-linux/chrome --disable-field-trial-config --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-back-forward-cache --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-component-update --no-default-browser-check --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=ImprovedCookieControls,LazyFrameLoading,GlobalMediaControls,DestroyProfileOnBrowserClose,MediaRouter,DialMediaRouteProvider,AcceptCHFrame,AutoExpandDetailsElement,CertificateTransparencyComponentUpdater,AvoidUnnecessaryBeforeUnloadCheckSync,Translate,HttpsUpgrades,PaintHolding --allow-pre-commit-input --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --no-service-autorun --export-tagged-pdf --disable-search-engine-choice-screen --headless --hide-scrollbars --mute-audio --blink-settings=primaryHoverType=2,availableHoverTypes=2,primaryPointerType=4,availablePointerTypes=4 --no-sandbox --user-data-dir=/tmp/playwright_chromiumdev_profile-lPFYGt --remote-debugging-pipe --no-startup-window +0ms
pw:browser <launched> pid=29738 +4ms
[webkit] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading
pw:browser <launching> /home/bhushan/.cache/ms-playwright/webkit-2003/pw_run.sh --inspector-pipe --headless --no-startup-window +0ms
pw:browser <launched> pid=29750 +6ms
[firefox] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading
pw:browser <launching> /home/bhushan/.cache/ms-playwright/firefox-1449/firefox/firefox -no-remote -headless -profile /tmp/playwright_firefoxdev_profile-18b0S9 -juggler-pipe -silent +0ms
pw:browser <launched> pid=29779 +7ms
pw:browser [pid=29779][err] *** You are running in headless mode. +25ms
[chromium] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading
pw:browser [pid=29738][err] [0508/002455.670320:INFO:config_dir_policy_loader.cc(118)] Skipping mandatory platform policies because no policy file was found at: /etc/chromium/policies/managed +97ms
pw:browser [pid=29738][err] [0508/002455.670377:INFO:config_dir_policy_loader.cc(118)] Skipping recommended platform policies because no policy file was found at: /etc/chromium/policies/recommended +0ms
pw:browser [pid=29738][err] /snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /lib/x86_64-linux-gnu/libproxy.so.1) +0ms
pw:browser [pid=29738][err] Failed to load module: /home/bhushan/snap/code/common/.cache/gio-modules/libgiolibproxy.so +1ms
pw:browser [pid=29738][err] [0508/002455.677241:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable. +5ms
[firefox] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading
pw:browser [pid=29779][err] JavaScript warning: resource://services-settings/Utils.sys.mjs, line 114: unreachable code after return statement +80ms
pw:browser [pid=29779][out] console.warn: services.settings: Ignoring preference override of remote settings server +5ms
pw:browser [pid=29779][out] console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment +1ms
[chromium] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading
pw:browser [pid=29738][err] [0508/002455.767877:WARNING:sandbox_linux.cc(436)] InitializeSandbox() called with multiple threads in process gpu-process. +91ms
[firefox] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading
pw:browser [pid=29779][out] console.error: ({}) +255ms
pw:browser [pid=29779][out] +15ms
pw:browser [pid=29779][out] Juggler listening to the pipe +1ms
[webkit] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading
pw:browser [pid=29750][err] /home/bhushan/.cache/ms-playwright/webkit-2003/minibrowser-wpe/bin/WPENetworkProcess: symbol lookup error: /snap/core20/current/lib/x86_64-linux-gnu/libpthread.so.0: undefined symbol: __libc_pthread_init, version GLIBC_PRIVATE +824ms
[firefox] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading
pw:browser [pid=29779][out] console.error: ({}) +427ms
pw:browser [pid=29779][out] console.error: SearchEngineSelector: "Received empty search configuration!" +111ms
pw:browser [pid=29779][out] console.error: "Received empty top sites configuration!" +73ms
pw:browser [pid=29779][out] console.error: SearchEngineSelector: "Received empty search configuration!" +10ms
pw:browser [pid=29779][out] console.error: SearchService: "#init: failure initializing search:" ({}) +0ms
pw:browser [pid=29779][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +24ms
pw:browser [pid=29779][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +0ms
pw:browser [pid=29779][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +0ms
pw:browser [pid=29779][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +0ms
[webkit] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading
pw:browser [pid=29750] <gracefully close start> +225ms
pw:browser [pid=29750] <process did exit: exitCode=0, signal=null> +12ms
pw:browser [pid=29750] starting temporary directories cleanup +1ms
pw:browser [pid=29750] finished temporary directories cleanup +1ms
pw:browser [pid=29750] <gracefully close end> +0ms
1) [webkit] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading ─────────────────
Error: page.goto: WebKit encountered an internal error
Call log:
- navigating to "https://meetanshi.in/m2d2", waiting until "load"
12 | throw new Error("Please provide the web url");
13 | }
> 14 | await page.goto(webUrl);
| ^
15 | const title = page.title();
16 | expect(title).not.toContain("error");
17 | await use(page);
at Object.page (/home/bhushan/demostoretesting/test/m2d2.spec.ts:14:16)
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/m2d2-m2d2-test-cases-Verify-Category-page-Heading-webkit/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
[firefox] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading
pw:browser [pid=29779][out] console.error: "Received empty top sites configuration!" +29ms
pw:browser [pid=29779][out] console.error: WebExtensions: +45ms
pw:browser [pid=29779][out] Message: [Exception... "Failed to get engine data from Remote Settings" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: resource://gre/modules/SearchEngineSelectorOld.sys.mjs :: getEngineConfiguration :: line 118" data: no] +0ms
pw:browser [pid=29779][out] Stack: +0ms
pw:browser [pid=29779][out] getEngineConfiguration@resource://gre/modules/SearchEngineSelectorOld.sys.mjs:118:24 +0ms
pw:browser [pid=29779][out] +0ms
pw:browser [pid=29779][out] console.error: SearchSettings: "_write: Could not write to settings file:" (new Error("cannot write without any engine.", "resource://gre/modules/SearchSettings.sys.mjs", 277)) +877ms
pw:browser [pid=29779][out] console.error: URLBar - Provider.UrlbarProviderSearchTips: ({}) +2s
pw:browser [pid=29779][out] console.warn: LoginRecipes: "Falling back to a synchronous message for: https://meetanshi.in." +3s
pw:browser [pid=29779][out] console.warn: LoginRecipes: "Falling back to a synchronous message for: https://meetanshi.in." +9ms
pw:browser [pid=29779][out] console.warn: LoginRecipes: "Falling back to a synchronous message for: https://meetanshi.in." +1ms
pw:browser [pid=29779][err] JavaScript error: https://meetanshi.in/m2d2/pub/static/frontend/Magento/luma/en_US/requirejs/require.js, line 168: Error: Script error for "Magento_Persistent/js/view/customer-data-mixin" +16ms
pw:browser [pid=29779][err] https://requirejs.org/docs/errors.html#scripterror +0ms
pw:browser [pid=29779][err] JavaScript error: https://meetanshi.in/m2d2/pub/static/frontend/Magento/luma/en_US/requirejs/require.js, line 168: Error: Script error for "Magento_Customer/js/customer-data" +2ms
pw:browser [pid=29779][err] https://requirejs.org/docs/errors.html#scripterror +0ms
pw:browser [pid=29779][err] JavaScript error: https://meetanshi.in/m2d2/pub/static/frontend/Magento/luma/en_US/requirejs/require.js, line 168: Error: Script error for "Magento_ReCaptchaFrontendUi/js/ui-messages-mixin" +0ms
pw:browser [pid=29779][err] https://requirejs.org/docs/errors.html#scripterror +0ms
pw:browser [pid=29779][err] JavaScript error: https://meetanshi.in/m2d2/pub/static/frontend/Magento/luma/en_US/requirejs/require.js, line 168: Error: Script error for "Magento_Ui/js/view/messages" +2ms
pw:browser [pid=29779][err] https://requirejs.org/docs/errors.html#scripterror +0ms
pw:browser [pid=29779][out] console.error: URLBar - Provider.UrlbarProviderSearchTips: ({}) +375ms
[chromium] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading
hello
pw:browser [pid=29738] <gracefully close start> +12s
pw:browser [pid=29738] <process did exit: exitCode=0, signal=null> +15ms
pw:browser [pid=29738] starting temporary directories cleanup +0ms
pw:browser [pid=29738] finished temporary directories cleanup +4ms
pw:browser [pid=29738] <gracefully close end> +0ms
[firefox] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading
pw:browser [pid=29779][err] JavaScript warning: resource://gre/modules/UpdateService.sys.mjs, line 3857: unreachable code after return statement +23s
pw:browser [pid=29779][err] JavaScript error: resource://gre/modules/SearchEngineSelectorOld.sys.mjs, line 118: NS_ERROR_UNEXPECTED: Failed to get engine data from Remote Settings +1s
pw:browser [pid=29779] <gracefully close start> +3m
pw:browser [pid=29779] <process did exit: exitCode=0, signal=null> +86ms
pw:browser [pid=29779] starting temporary directories cleanup +0ms
pw:browser [pid=29779] finished temporary directories cleanup +7ms
pw:browser [pid=29779] <gracefully close end> +0ms
2) [firefox] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading ────────────────
Test was interrupted.
Error: locator.click: Target page, context or browser has been closed
Call log:
- waiting for locator('//span[normalize-space()="Email Attachments"]')
at ../pages/Assertions/m2d2_Assertions.ts:21
19 | public async navigateToCategoryPage() {
20 | await this.page.waitForTimeout(1000);
> 21 | await this.getMenuLink.click();
| ^
22 | expect(await this.headingText.textContent()).toBe("Email Attachments");
23 | await expect(this.page).toHaveTitle("Email Attachments");
24 | await expect(this.page).toHaveURL(/.*email-attachments/);
at m2d2_Assertions.navigateToCategoryPage (/home/bhushan/demostoretesting/pages/Assertions/m2d2_Assertions.ts:21:28)
at /home/bhushan/demostoretesting/test/m2d2.spec.ts:32:5
attachment #1: screenshot (image/png) ──────────────────────────────────────────────────────────
test-results/m2d2-m2d2-test-cases-Verify-Category-page-Heading-firefox/test-failed-1.png
────────────────────────────────────────────────────────────────────────────────────────────────
Slow test file: [firefox] › m2d2.spec.ts (3.8m)
Consider splitting slow test files to speed up parallel execution
1 failed
[webkit] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading ──────────────────
1 interrupted
[firefox] › m2d2.spec.ts:31:8 › m2d2 test cases › Verify Category page Heading ─────────────────
1 passed (3.9m)
from playwright.
Looks like the minimal reproducible is the following? Please try to run the following to see if that works in WebKit or not.
import { test, expect } from '@playwright/test';
test('basic test', async ({ page }) => {
await page.goto('https://meetanshi.in/m2d2');
});
If not, please adjust it, so that it surfaces the problem. Ideally without any POM. Also is this is a normal Linux VM (no Docker container etc.)?
from playwright.
Well there is no docker is running for playwright. this is normal Linux VM. I have checked with basic test but still its not working.
You can check this in above screenshot.
from playwright.
As I investigated web kit is working in Linux terminal. problem is of vs code terminal. So i will close this issue.
I will recheck this after re installation of vs-code. Thanks!!
from playwright.
Related Issues (20)
- [Feature]: I would like waitForResponse to be available on BrowserContext HOT 1
- [Bug]: Expect timeout is not used for locators HOT 1
- [Bug]: localhost replaced with [::1] HOT 2
- [Bug]: Svelte 4 component testing not working HOT 2
- [Feature]: ui mode include Playwright inspector HOT 1
- [Bug]: Plugin VSCode not working with the shared auth
- [Bug]: Unable to capture URL address of a new tab in headless mode HOT 1
- [Bug]: VSCode Extension doesn't list test cases in Test Explorer when configuration file is under sub folder of root of workspace. HOT 3
- [Bug]: VSCode extension cannot start test-server because it always lookup config file from root workspace HOT 2
- [Bug]: Playwright ts/js method isDisabled() doesnot work as expected HOT 1
- [Bug]: Using command "npx playwright test" the dependences and teardown are not run after every test HOT 1
- The browsers don't work in the Docker image HOT 1
- [Bug]: UI seems to lock on Windows making tests time out HOT 7
- [Bug]: Having multiple `Page`s on the same domain, JS coverage is only reported for the one that got `stopJSCoverage` called before others
- [Bug]: VS Code extension ignores `launchOptions.executablePath` HOT 1
- [Feature]: Add the Ability to Prevent Browser Teardown on Failure in --debug Mode HOT 1
- 📢 Playwright VS Code Extension Project Management
- [Bug]: Debugger is getting hanged while debugging through playwright extension HOT 7
- [Bug]: --ui mode doesn't respect --output as of 1.43
- [Enhance HTML report]:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playwright.