How To Upload And Download Files | Playwright With TypeScript Tutorial 🎭| Part 8
Автор: LambdaTest
Загружено: 2022-07-14
Просмотров: 12750
Описание:
Automating file uploads and downloads can sometimes be challenging, but not with Playwright! Watch this video to learn how to upload and download files in Playwright in just a few minutes.
Start FREE Testing: https://accounts.lambdatest.com/regis...
𝑱𝒐𝒊𝒏 𝑻𝒆𝒔𝒕μ 𝑪𝒐𝒏𝒇 𝟐𝟎𝟐𝟐 - 𝑨 𝒇𝒓𝒆𝒆 𝒐𝒏𝒍𝒊𝒏𝒆 𝒕𝒆𝒔𝒕𝒊𝒏𝒈 𝒔𝒖𝒎𝒎𝒊𝒕 𝒕𝒐 𝒅𝒆𝒇𝒊𝒏𝒆 𝒕𝒉𝒆 𝒇𝒖𝒕𝒖𝒓𝒆 𝒐𝒇 𝒕𝒆𝒔𝒕𝒊𝒏𝒈. 𝑵𝒆𝒕𝒘𝒐𝒓𝒌 𝒘𝒊𝒕𝒉 𝟓𝒌+ 𝒂𝒕𝒕𝒆𝒏𝒅𝒆𝒆𝒔 | 𝑳𝒆𝒂𝒓𝒏 𝒇𝒓𝒐𝒎 𝟑𝟎+ 𝒔𝒑𝒆𝒂𝒌𝒆𝒓𝒔 | 𝑾𝒊𝒏 𝒈𝒐𝒐𝒅𝒊𝒆𝒔 𝒘𝒐𝒓𝒕𝒉 $𝟕𝟓𝟎𝟎: https://bit.ly/3P9DdhK
In this Part-VIII of the Playwright tutorial series, 𝙆𝙤𝙪𝙨𝙝𝙞𝙠 𝘾𝙝𝙖𝙩𝙩𝙚𝙧𝙟𝙚𝙚 (@Koushik_chat), Content Creator at LetCode walks you through how to upload and download a file in Playwright with the help of real-time examples.
🔹 𝑯𝒐𝒘 𝒕𝒐 𝒖𝒑𝒍𝒐𝒂𝒅 𝒇𝒊𝒍𝒆𝒔 𝒊𝒏 𝑷𝒍𝒂𝒚𝒘𝒓𝒊𝒈𝒉𝒕?
➡ Following are the ways in which you can upload files in Playwright:
↪ 𝑺𝒊𝒏𝒈𝒍𝒆 𝒇𝒊𝒍𝒆 𝒖𝒑𝒍𝒐𝒂𝒅: You can use the setInputFiles Playwright method to select and upload a single file.
↪ 𝑴𝒖𝒍𝒕𝒊𝒑𝒍𝒆 𝑭𝒊𝒍𝒆 𝑼𝒑𝒍𝒐𝒂𝒅: You can use the setInputFiles command to upload multiple files in Playwright, but instead of one file path, you must pass an array of file paths.
↪ 𝑭𝒊𝒍𝒆(𝒔) 𝒖𝒑𝒍𝒐𝒂𝒅 𝒇𝒐𝒓 𝒏𝒐𝒏-𝒊𝒏𝒑𝒖𝒕 𝒆𝒍𝒆𝒎𝒆𝒏𝒕𝒔: The filechooser method can be used when there is a non-input file upload element (meaning there is no input element with the type "file"). We set the values of the file input associated with the chooser using the fileChooser.setFiles method.
🔹 𝑯𝒐𝒘 𝒕𝒐 𝒅𝒐𝒘𝒏𝒍𝒐𝒂𝒅 𝒇𝒊𝒍𝒆𝒔 𝒊𝒏 𝑷𝒍𝒂𝒚𝒘𝒓𝒊𝒈𝒉𝒕?
➡ In Playwright, downloaded objects are dispatched by page via the page.on('download') event. When the browser context is closed, all downloaded files belonging to it are deleted.
Vɪᴅᴇᴏ Cʜᴀᴘᴛᴇʀꜱ 👀
0:00 Introduction
0:20 How to download files in Playwright?
11:13 How to upload files in Playwright?
16:10 FileChooser method
20:18 Conclusion
📌 𝑮𝒊𝒕𝑯𝒖𝒃 𝑳𝒊𝒏𝒌: https://github.com/ortoniKC/playwrigh...
*𝑼𝒔𝒆𝒇𝒖𝒍 𝑫𝒐𝒄𝒔*
🔹 How To Run Playwright Tests On LambdaTest Platform: https://bit.ly/3t5w0XI
🔹 Run Your First Playwright Test On LambdaTest Platform: https://bit.ly/3x1jRWi
🔹 How To Run Playwright Tests In Parallel: https://bit.ly/3GyRORe
🔹 Migrate Existing Playwright Test Suites On LambdaTest: https://bit.ly/3PRFH5T
🔹 Test Execution Setup: https://bit.ly/3PONYYp
🔹 Run Local Tests Using Playwright: https://bit.ly/3z6jc7q
🔹 Running Playwright Tests With Playwright Test Runner: https://bit.ly/3N1WLo7
🔹 Running Playwright Tests With Cucumber.js: https://bit.ly/3xaKHvr
🔹 Running Playwright Tests In CI/CD: https://bit.ly/3GzDs3d
Sign Up for LambdaTest! It’s FREE 🙌
Perform scalable and reliable cross-browser compatibility testing of your website and web app on the latest mobile and desktop browsers: https://accounts.lambdatest.com/regis...
𝑹𝒖𝒏 𝒚𝒐𝒖𝒓 𝑷𝒍𝒂𝒚𝒘𝒓𝒊𝒈𝒉𝒕 𝒕𝒆𝒔𝒕 𝒔𝒄𝒓𝒊𝒑𝒕𝒔 𝒊𝒏𝒔𝒕𝒂𝒏𝒕𝒍𝒚 𝒐𝒏 𝟓𝟎+ 𝒃𝒓𝒐𝒘𝒔𝒆𝒓 𝒂𝒏𝒅 𝑶𝑺 𝒄𝒐𝒎𝒃𝒊𝒏𝒂𝒕𝒊𝒐𝒏𝒔 𝒖𝒔𝒊𝒏𝒈 𝒕𝒉𝒆 𝑳𝒂𝒎𝒃𝒅𝒂𝑻𝒆𝒔𝒕 𝒄𝒍𝒐𝒖𝒅. 𝑬𝒙𝒆𝒄𝒖𝒕𝒆 𝑷𝒍𝒂𝒚𝒘𝒓𝒊𝒈𝒉𝒕 𝒕𝒆𝒔𝒕𝒊𝒏𝒈 𝒊𝒏 𝒑𝒂𝒓𝒂𝒍𝒍𝒆𝒍 𝒂𝒏𝒅 𝒄𝒖𝒕 𝒅𝒐𝒘𝒏 𝒚𝒐𝒖𝒓 𝒕𝒆𝒔𝒕 𝒆𝒙𝒆𝒄𝒖𝒕𝒊𝒐𝒏 𝒕𝒊𝒎𝒆 𝒃𝒚 𝒎𝒖𝒍𝒕𝒊𝒑𝒍𝒆 𝒇𝒐𝒍𝒅𝒔. 𝑲𝒏𝒐𝒘 𝒎𝒐𝒓𝒆: https://bit.ly/3avWLhF
Register Now to Avail Bonanza Offerings 💎
Test websites and web apps on 3000+ real browsers over LambdaTest cloud
Trusted By 1M+ users, 500+ enterprises and 130+ countries
Online scalable Selenium Grid to perform Manual as well as Automation Testing
100 minutes of free Web + Mobile Automation Testing
60 minutes of free Live Interactive Testing per month
10 Screenshot Tests per month
10 Responsive Tests per month (Test a page across 50+ Device configurations with a single click)
Unlimited free testing on LT Browser
For questions: [email protected] 😃
*𝑬𝒙𝒑𝒍𝒐𝒓𝒆*
🎬 Most Recent Videos: https://bit.ly/3kUUeAQ
🎓 Learning Hub: https://bit.ly/3fr6l4Z
🎥 LambdaTest Customers: https://bit.ly/2TB7pvD
🚀 Webinars: https://bit.ly/37i41co
🛠️ Product Updates: https://bit.ly/3717NGO
💬 LambdaTest Certifications: https://bit.ly/3x4EtcY
*𝑺𝒐𝒄𝒊𝒂𝒍*
📝 BLOG: https://bit.ly/3yGVsUc
👥 COMMUNITY: https://bit.ly/3Aiz5oO
🔴 NEWSLETTER: https://bit.ly/3juhxzc
🖼️ GITHUB: https://bit.ly/3jowfYs
🛠️ YOUTUBE: https://bit.ly/3rH2Yfh
🌎 LINKEDIN: https://bit.ly/3xA6F84
👥 FACEBOOK: https://bit.ly/37mbQOa
🐦TWITTER: https://bit.ly/3Cn0g3A
📸 PINTEREST: https://bit.ly/2VCXI05
#playwrighttutorial #playwrighttesting #lambdatest #playwrightautomation #playwright #microsoftplaywright #playwrightautomationtutorial #playwrightframework #playwrighttestingtool #playwrightuploadfile #playwrightdownloadfile #playwrightdownload
Disclaimer:
This video features materials protected by the Fair Use guidelines of Section 107 of the Copyright Act. All rights reserved to © 2022 LambdaTest. Any illegal reproduction of this content will result in immediate legal action.
Повторяем попытку...

Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: