I am unable to handle radio button via check and click action. its scroll up and down and my testcase timeout. Video attatched. https://drops.meetanshi.com/v/hjGtMr
This thread is trying to answer question "How can I handle a radio button that scrolls up and down, causing my test case to timeout?"
http://joxi.ru/LmGNdBOcZWj8ar Like in this pic the input locator is the checkbox but bounding box is 1x1 -> it will fail when run test for sure -> get the span or label to get rid of it
test.only('Add Product Review',async({page})=>{ parent.prepareMessageForHtml(message.text)"]' await page.goto('https://meetanshi.in/m2d1/apple-iphone-x.html') await page.pause() await page.evaluate(()=>{ window.scrollTo(0,document.body.scrollHeight)
})
await page.pause()
await page.locator('//label[@id="Quality_3_label"]').check()
}) - i have tried this test also but still unable to handle this case
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].