All Questions
Tagged with browser-automation playwright
32 questions
-4
votes
4
answers
490
views
How to set the playwright browser size at startup? [closed]
setViewPortSize doesn't set the browser's window size in Playwright
How can I set the browser window (viewport) size at startup?
1
vote
1
answer
66
views
how to click on element from JSHandle in Python Playwright
I have a locator for a dropdown list which implemented as virtual list, below is the way I'm fetching list options
dropdown_locator.evaluate_handle('$0 => Array.from($0.__dropdownOptions)
result ...
0
votes
0
answers
286
views
How to run async playwright?
I'm trying to control the adspower anti-detect browser's API with playwright.
import requests
from playwright.sync_api import sync_playwright
ads_id='kkvlbud'
response = requests.get("http://...
0
votes
1
answer
522
views
How to handle multiple tabs using Playwright Java & POM and interact with elements inside the new tab
How to handle multiple tabs using Playwright Java & POM and interact with elements inside the new tab?
I am using PageBase class and here is the basic content of it
public class PageBase {
...
0
votes
1
answer
2k
views
includes assertion in playwright for for CSS and Attribute?
Here I have a piece of code in Playwright with the ToHaveCSS function which returns the exact value of the mentioned CSS.
Locator:
locator('//label[text()=\'Chat Status\']/following-sibling::*/button')...
2
votes
1
answer
4k
views
Playwright is not generating videos when we create our own context
Videos are not generated in a playwright-report HTML report. Is there a workaround?
Below is the playwright.config.ts file:
import { defineConfig, devices } from '@playwright/test';
export default ...
2
votes
2
answers
1k
views
Can't locate <a> element with all-number id attribute in Playwright ('#56' is not a valid selector)
I want to catch and locate <a> element with id attribute.
Possible attributes:
role
href
title
id
style
onclick
I can do it by role and name, but can't do it by id or onclick. The last two ...
0
votes
1
answer
8k
views
Playwright - Get by Role locator with Dynamic elements
I've got an element with locator as getByRole('cell', {name : 'Hold (10)}). Now the (2) is dynamic and changes based on the number of entries. How can I write the framework to only check for Hold and ...
1
vote
1
answer
2k
views
Playwright configuration to imitate my original browser actions
I'm trying to write a simple bot using Playwright for a browser game. Game has one repetitive action (button clicking) which I would like to avoid. My idea is to be able to play the game on my ...
0
votes
1
answer
2k
views
How to Test Scroll Behavior When Scrollbar Doesn't Exist with Playwright?
I'm currently working on automated tests with the page object using Playwright, and I have a function scrollDownAndUpOnboarding that's designed to scroll down and then up on a web page. However, I've ...
0
votes
1
answer
2k
views
Trouble with Playwright with MUI and waiting for MUI Grid Data to Load
So I have three tests so far. First test is login and second test is to click the accounts tab. Both of these work fine. My third test(Account Details Contact Grid) is where I am having an issue. Upon ...
1
vote
3
answers
6k
views
How to: Interact with a slider using Playwright
What I expected
I am attempting to interact with a slider ui element on my angular based webpage. The code shown below is not interacting with the elements in question anymore. It was at one point..
...
2
votes
1
answer
2k
views
Playwright execution context destroyed after call to page.evaluate()
First and foremost; thanks in advance for any and all feedback provided.
I'm building a web scraper using the Playwright Python API. There's an element on a page, related to an authentication flow, ...
3
votes
3
answers
2k
views
playwright equivalent of find() in cypress
Is there a way to traverse through html elements in playwright like cy.get("abc").find("div") in cypress?
In other words, any find() equivalent method in playwright?
page.locator(&...
2
votes
0
answers
3k
views
How to get an API get request's query parameter using Playwright-Java
Context:
Trying to intercept and Replace a browser get request's query string parameters using playwright Java.
I am able to print the URL of the get request along with the query string parameters ...