LambdaTest is an AI-powered unified test orchestration and execution cloud that enables developers & testers to run manual & automated tests at scale. It has over 10,000 customers and over 2M users in 130 countries.
𝐂𝐨𝐫𝐞 𝐎𝐟𝐟𝐞𝐫𝐢𝐧𝐠𝐬:
𝐊𝐚𝐧𝐞𝐀𝐈: Smart AI Test Agent, allowing teams to create, debug, and evolve tests using natural language.
𝐂𝐨𝐧𝐭𝐢𝐧𝐮𝐨𝐮𝐬 𝐓𝐞𝐬𝐭𝐢𝐧𝐠 𝐂𝐥𝐨𝐮𝐝: 70% faster & more scalable than in-house grids
𝐁𝐫𝐨𝐰𝐬𝐞𝐫 𝐓𝐞𝐬𝐭𝐢𝐧𝐠 𝐂𝐥𝐨𝐮𝐝: Supports 3000+ browsers, OS & real device environments
𝐑𝐞𝐚𝐥 𝐃𝐞𝐯𝐢𝐜𝐞 𝐂𝐥𝐨𝐮𝐝: Supports mobile app testing on real mobile & OTT devices
Is it really possible that the sendKeys() operation will be slow enough in its actually execution (even in non headless mode) that a element.click() will come before the completion of the first? Genuine question. What might cause it?
Hi Prasad, To call a class object from fixtures in Cucumber hooks with Playwright, import the class in your hooks file and create an instance of it in the Before or After hooks.
Hello Kaushik, create a new instance mean like homepage = new Homepage(); if I use this then will that not reset all the variables value to null as it would be the new instance created in hooks and not coming from fixtures?
when will support come for iOS native context ? Currently there is not support for iOS native app. There is wdio is supported for web view context in iOS but not for iOS native context.
Hey @dayananddhange6327 WebdriverIO can automate iOS native applications, however all Bidi features you see are for web testing only. Appium is working on building support for Bidi for native contexts but these type of features will look different.
Hi Dayanand, The support for iOS native context is not currently available, but only for web view contexts with WebdriverIO. The timeline for iOS native context support hasn't been announced yet.
Hi , I have the 2 test files in cypress e2etest1 and e2e test2 I ran the cypress command npx cypress run --browser chrome and I am able to see only 1 test file lighthouse report. How can I see the 2 lighthouse reports for 2 test files by running the command npx cypress run --browser chrome
Hi Naveen, To generate separate Lighthouse reports for both test files, you can run each test file individually using npx cypress run --spec "path/to/test1" --browser chrome and npx cypress run --spec "path/to/test2" --browser chrome.
Hii.. Can you clarify my doubts regarding that page.screenshot() is an older version right why because now, I have did that same thing it was displaying only the screenshotOptions().
Hi Jagadeshwaran, It seems like you're using an updated version of Playwright where the method page.screenshot() has been replaced or updated to screenshotOptions() for handling screenshot functionality. In Playwright, page.screenshot() is still valid in most cases, but updates to the API may have introduced screenshotOptions() as a more configurable or structured way to manage screenshot options.
Hi, Getting could not calculate build plan error after creating the maven project, also maven project created is not in format which you have created, do you any solution to fix this and go forward? Thanks!!
Hey @charanteja7947 To fix the 'could not calculate build plan' error: 1. Check your pom.xml for any missing dependencies or errors. 2. Run mvn clean install to rebuild the project. 3. Ensure your project follows Maven’s structure: src/main/java and pom.xml in the root. 4. Reimport the project in your IDE to sync Maven. If it persists, clear the .m2 folder and try again. Let me know if this helped :)
I have Jenkins running in the Docker and getting this error: Detected Maven Version: 3.8.7 is not in the allowed range [3.9.2,). Do you know how to fix it?
Hey @larrybg , hope you are doing well , this is what i would suggest you try and it must solve your issue that is, To fix the error "Detected Maven Version: 3.8.7 is not in the allowed range [3.9.2,)" in Jenkins running on Docker: 1. Update Maven Version in Docker: Update the Maven version in your Docker container. Modify your Dockerfile or install Maven 3.9.2+ inside the container: apt-get update apt-get install maven 2. Specify Maven Version in Jenkins: Go to Jenkins > Manage Jenkins > Global Tool Configuration, and set the Maven version to 3.9.2 or higher. I hope this works :)
Hello @mister_writer , It sounds like the version you're seeing is likely an updated one, and unfortunately, accessing older versions of the Selenium Playground may be difficult. However, you can definitely work with the new version. If you encounter any issues or need assistance, feel free to reach out anytime, and we're here to help!
Hi Magdalena, Yes, in Cypress, you can use cy.then to perform actions after a command resolves, without needing to use cy.wait().then. The cy.then method is a way to work with the result of a previous command or to execute some code after a command completes.
Thank you so much Jain for your contributions, will deff look into previous conference talks after this. Really enjoyed your presentation style and learned a lot from watching
Thank you so much for your amazing feedback! 😊 Thrilled to hear that the video was so helpful. Your support means a lot-glad to be part of your journey!
I am getting error as "Could not connect to Appium server URL '127.0.0.1:4723/wd/hub'. Please check if the server is running and the URL is correct (valid URLs can be found at the start of the Appium server log). If you are using the Inspector's browser version, ensure the server has been started with '--allow-cors'."
Hi Koushik, can We integrate Playwright with Xray. I mean to get the execution results directly updated into X-ray immediately after test case execution (without Azure)
Hello @gauthamnandavarambanda7270 , Yes, you can integrate Playwright with Xray to update test execution results directly. After running Playwright tests, capture the results in JUnit XML or JSON format, and use Xray's REST API to submit these results to Xray. Here's a brief example in Node.js: const axios = require('axios'); const fs = require('fs'); const results = fs.readFileSync('results.xml', 'utf8'); const jiraBaseUrl = 'your-jira-url'; const xrayApiEndpoint = '/rest/raven/1.0/import/execution/junit'; const authToken = 'your-auth-token'; axios.post(`${jiraBaseUrl}${xrayApiEndpoint}`, results, { headers: { 'Authorization': `Bearer ${authToken}`, 'Content-Type': 'application/xml', } }) .then(response => console.log('Results submitted:', response.data)) .catch(error => console.error('Submission error:', error)); This sends your Playwright results directly to Xray without needing Azure. Hope this helps :)
Hi, Thank you for reaching out, but unfortunately, we are unable to share the GitHub at this time. If you have any other questions or need further assistance, feel free to ask!
Hi Venkatesh, Since SelectDate() is not available in Playwright, you can achieve this by either entering the date directly into the input field or by simulating the date picker interaction.
I'm in page, but after clicking continue button it is reloading the same page, url and DOM got changed which is not in and I'm not able to access the page, Can you please let me know how to handle this?
Hey @priyadarsini6788, you can Switch to the , click the button, then switch back to the main content using driver.switchTo().defaultContent(). This allows you to interact with the new page after it reloads outside the . Hope this helps :)
Hi Priyadarsini, To handle navigation and click in one line, please use this command - await Promise.all([page.waitForNavigation(), page.frameLocator('[name="your__name"]').locator('button#continue').click()]);
Hi Priyadarsini, In TypeScript with Playwright, there isn't a direct switchToDefaultContent() method like in Selenium. However, switching to the default content (main frame) can be achieved using page.mainFrame() method in Playwright.
HI Koushik, Your way of teaching is awesome and it is very helpful for me. I have a question, I have a testing experience of 5 years and after my maternity period (now 2 years break). I am really interested to do certifications and update my skills but financially not stable to do certifications and in order to restart my career, I myself upskilling from youtube videos and practicing it. Still I did not get any interview calls, but I got an opportunity to contribute to one of the open source project as a tester (Plant based AI model). In the project they were using python language, Machine learning and much more related to AI. I am having experience on selenium and java previously. Now for this project can I perform testing on Playwright and which language should l prefer java or python? please suggest me.
Hi Sathya, You can use Playwright with Python for the project to align with the project's language and ecosystem while enhancing your Python skills. Further, you can also try out Playwright certifications that can help validate your Python skills. Please explore if this can help you: www.lambdatest.com/certifications/playwright-101
@LambdaTest Hi Kaushik, Hope you are having good time with testing stuff! Have one question : I was trying to update Playwright to latest version, but facing below mentioned errors. Can you please advice me what I need to do to complete the update? ------------------------------------------------------- PS C:\Playwright> npm playwright --version 10.8.2 PS C:\Playwright> npm install -D @playwright/test@latest npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: @typescript-eslint/eslint-plugin@4.0.0 npm error Found: eslint@8.57.0 npm error node_modules/eslint npm error peer eslint@"^6.0.0 || ^7.0.0 || >=8.0.0" from @eslint-community/eslint-utils@4.4.0 npm error node_modules/@eslint-community/eslint-utils npm error @eslint-community/eslint-utils@"^4.2.0" from eslint@8.57.0 npm error peer eslint@"*" from @typescript-eslint/experimental-utils@4.0.0 npm error node_modules/@typescript-eslint/experimental-utils npm error @typescript-eslint/experimental-utils@"4.0.0" from @typescript-eslint/eslint-plugin@4.0.0 npm error node_modules/@typescript-eslint/eslint-plugin npm error @typescript-eslint/eslint-plugin@"^4.0.0" from the root project npm error 3 more (@typescript-eslint/experimental-utils, ...) npm error npm error Could not resolve dependency: npm error peer eslint@"^5.0.0 || ^6.0.0 || ^7.0.0" from @typescript-eslint/eslint-plugin@4.0.0 npm error node_modules/@typescript-eslint/eslint-plugin npm error @typescript-eslint/eslint-plugin@"^4.0.0" from the root project npm error npm error Conflicting peer dependency: eslint@7.32.0 npm error node_modules/eslint npm error peer eslint@"^5.0.0 || ^6.0.0 || ^7.0.0" from @typescript-eslint/eslint-plugin@4.0.0 npm error node_modules/@typescript-eslint/eslint-plugin npm error @typescript-eslint/eslint-plugin@"^4.0.0" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error C:\Users\ShwetaTuli\AppData\Local pm-cache\_logs\2024-08-22T04_17_40_448Z-eresolve-report.txt npm error A complete log of this run can be found in: C:\Users\ShwetaTuli\AppData\Local pm-cache\_logs\2024-08-22T04_17_40_448Z-debug-0.log ------------------------------------------------------------------- Thanks, Shweta
@@LambdaTest Thank you for your reply. I have ran "npm install -D @playwright/test@latest --legacy-peer-deps" command and it ran without any error. However it didn't change the Playwright version number, can you please confirm me what is the latest Playwright version? To me it showing 10.8.2 PS C:\Playwright> npm install -D @playwright/test@latest --legacy-peer-deps up to date, audited 421 packages in 7s 118 packages are looking for funding run `npm fund` for details 6 moderate severity vulnerabilities To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. PS C:\Playwright> npm playwright --version 10.8.2 Thanks, Shweta