Giter VIP home page Giter VIP logo

Comments (12)

mxschmitt avatar mxschmitt commented on June 15, 2024 2

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.

mxschmitt avatar mxschmitt commented on June 15, 2024

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.

bhushantbn avatar bhushantbn commented on June 15, 2024

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.

bhushantbn avatar bhushantbn commented on June 15, 2024

@mxschmitt 2nd point is that as I investigated this bug.

The same test is working perfectly on Windows 10 OS.

image

But this test isn't working in the above Environment configurations as I mentioned over in this bug report

from playwright.

mxschmitt avatar mxschmitt commented on June 15, 2024

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.

bhushantbn avatar bhushantbn commented on June 15, 2024

oh my god 1.44.0 launched?

from playwright.

bhushantbn avatar bhushantbn commented on June 15, 2024

@mxschmitt I have update playwright 1.43 to 1.44 latest version but my test is still not working in web kit browser.

image
image
image

from playwright.

mxschmitt avatar mxschmitt commented on June 15, 2024

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.

bhushantbn avatar bhushantbn commented on June 15, 2024
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.

mxschmitt avatar mxschmitt commented on June 15, 2024

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.

bhushantbn avatar bhushantbn commented on June 15, 2024

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.

image

from playwright.

bhushantbn avatar bhushantbn commented on June 15, 2024

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!!

image

from playwright.

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.