Thank you very much for your insightful video. I found it extremely helpful. I do, however, have a question regarding the recording of actions within s. It appears that when elements are located inside an , I am unable to select them using Playwright's code generation tool. Could you please provide some guidance on how to handle this situation?
Mikesh, it can't click on element because your XPATH locator //a[text()='java.applet'] returns two web elements, you need to use (//a[text()='java.applet'])[1] if you want to click on the first link. And using inner text is just sloppy development.
Its year 2023 and he is still making life easier to me with this videos ! Mukesh sir on fire !
Thank you very much for your insightful video. I found it extremely helpful. I do, however, have a question regarding the recording of actions within s. It appears that when elements are located inside an , I am unable to select them using Playwright's code generation tool. Could you please provide some guidance on how to handle this situation?
Codegen is for basic recording only. If u have frames, shadow dom, multiple tabs then write the code to handle them.
Thanks Mukesh 😊
Welcome
Mikesh, it can't click on element because your XPATH locator //a[text()='java.applet'] returns two web elements, you need to use (//a[text()='java.applet'])[1] if you want to click on the first link. And using inner text is just sloppy development.
what if the expect (assertion) locator is also inside the frame , how do we assert ?
Hi Aparna once u r in frame u can do any action n assertion
Please make video for Playwright with Core Java
Can you add a video on AG Grid scrolling please ??
Can playwright test mobile device like swiping in its emulator?