Comments (5)
I cannot reproduce it with the following test, looks like the web site may add it with a delay or not add at all at its discretion. Can also be that some bot protection kicks-in. If you think this is a playwright bug, can you share a self-contained repro that we could run locally?
import { expect, test } from "@playwright/test";
test("Test", async ({ page }) => {
await page.goto('https://app.jobnimbus.com');
await new Promise(() => {})
});
from playwright.
Here is the self-contained repo: https://github.com/chintalJN/my-playwright-project
The settings I am using are :
{
name: 'Google Chrome',
use: { ...devices['Desktop Chrome'], channel: 'chrome',
viewport: { width: 1920, height: 1080 },
},
},
from playwright.
The test is passing for me locally:
Like I said there maybe a race condition (in which case waiting for the element to show up might help) or site behavior changes depending on whether the client browser is controlled by automation or some other condition. To rule out those scenarios and have reliable repro, I asked for a self-contained example, i.e. the one that includes the web app too rather than goes to a page in the internet. Could you provide that? Otherwise we can't seem to reproduce it.
from playwright.
I am sharing the local recording here: https://share.zight.com/bLuvq2n4
I am sure the issue is not about racing condition. This does not happen with Selenium when I set viewport: { width: 1920, height: 1080 } for the test browser. I am QA Engineer at JobNimbus and testing the website in the example. The issue does not happen when I have launchOptions: {
args: ["--start-maximized"]
} in playwright.config.ts
from playwright.
Try recording a trace to debug why it's not showing up. I trust you that it may be reproducible in you environment, but we need to be able to repeat it locally to see the bug and so far the following test has been passing 10 times out of 10:
import { test, expect } from '@playwright/test';
test('get started', async ({ page }) => {
await page.goto('https://app.jobnimbus.com');
await (expect(page.locator(`[data-test-id='chat-widget-iframe']`)).toBeVisible());
await page.screenshot({ path: `screenshot.png` });
});
from playwright.
Related Issues (20)
- [Feature]: merge Playwright Inspector into trace view
- page.evaluate returns empty object HOT 6
- [Bug]: Network mocking does not work for initial request when page opened via extension API `chrome.tabs.create()`
- [Docs]: Adding Theatron to third-party reporter showcase HOT 1
- [Bug]: --ignore-snapshots option doesn't work when combined with --ui mode HOT 3
- [Bug]: `Locator.focus` does not respect the default timeout of 0 (no timeout) HOT 2
- [Bug]: Playwright ui is not showing any tests HOT 4
- [Feature]: Timeout Differentials
- [Bug]: Unable to Locate SVG(Scalable Vector Graphics) Icon Element HOT 1
- [Feature]: Add Official Playwright Logo SVG to Project Assets HOT 3
- [Feature]: Global Timeout for toHaveScreenshot()
- [Bug]: cdpsession.on() seems not work. HOT 8
- [Bug]: Unable to turn off GeoLocation or block a given website from accessing the GeoLocation feature. HOT 2
- [Feature]: Use system wide webview HOT 1
- [Bug]: `LaunchAsync` finishes with `TimeoutException` on Chrome HOT 1
- [Bug]: proxy not working for any browser HOT 5
- [Bug]: Playwright locator from generateLocator refers to the wrong html element HOT 1
- [internal]: remove screenshot-instead-of-snapshot usages
- Executing the Playwright automation suite before the Pull Request get merged into main branch HOT 2
- [Feature]: Add `page.clock` method to check if `page.clock.install()` was called HOT 2
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.