Comments (5)
@yury-s : Could you please help me here
from playwright-java.
Please provide a complete example which we could use to reproduce the issue locally.
from playwright-java.
I am sharing the below code, Could please check if the below code snippet can give you a better idea of the scenario which i am trying.
the application URL has restricted access, hence could not share the URL.
String extensionDirPath = PathToExtension
List args = new ArrayList<>(Arrays.asList(
"--disable-extensions-except=" + extensionDirPath,
"--load-extension=" + extensionDirPath,
"--use-fake-ui-for-media-stream",
"--use-fake-device-for-media-stream"
));
BrowserType browserType = playwright.chromium();
context = browserType.launchPersistentContext(tempUserDataDir, new BrowserType.LaunchPersistentContextOptions()
.setHeadless(false)
.setArgs(args)
Page page = context.newPage();
Page.navigate("application URL");
page.click("Xpath to button"); //This page opens up new tab
context.pages() --> Returns 1 , but expecting 2 as new tab is opened by click action which.
If we wait for 5-10 seconds , we are seeing the value as 2.
I tried using below
page=context().waitForPage(() -> {
page.locator('element locator').isVisible();
});
from playwright-java.
It has something to do with the extension. I cannot reproduce it with regular web pages. We need complete reproduction example.
from playwright-java.
Closing as part of the triage process since it seemed stale. Please create a new issue with a detailed reproducible or feature request if you still face issues.
from playwright-java.
Related Issues (20)
- [Docs]: trouble with the `mvn exec install webkit` command HOT 4
- ClassNotFoundException for Playwright CLI HOT 1
- [Bug]: Drag and drop in a canvas is not working in playwright HOT 4
- [Regression]: Maven could not create local repository HOT 1
- [Bug]: PLAYWRIGHT_NODEJS_PATH env variable is ignored in version 1.43.0 HOT 5
- [Feature]: ApiRequestContext: Add support for SSL Context HOT 1
- [Feature]: Ubuntu 24.04 HOT 1
- [Feature]: Trace viewer log type actions HOT 4
- [Bug]: Failed to install browsers, exit code: 1 HOT 1
- [Feature]: Add method to retrieve the wsEndpoint of a browser launched with Playwright HOT 2
- [Ports]: Backport client side changes
- How to use jdk8 within Docker image HOT 1
- [Bug]: Browser object not available when a page is launched using launchPersistentContextOptions HOT 2
- [Bug]: Incognito mode in chromium with version 1.43 HOT 2
- [Bug]: The playwright operation error occurs HOT 1
- [Ports]: Backport client side changes
- [Bug]: Playwright excludes null when serializing request
- [Ports]: Backport client side changes for 1.45
- Unable to interact with the print button in the browser's control+p print window
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-java.