Microsoft has announced Playwright, a tool that lets developers write tests in Python for web applications across Chrome, Chromium-based Edge, Apple Safari and Mozilla Firefox.
Playwright, a Python library, allows developers to essentially control the browser with a few lines of Python code to automate cross-browser testing for single-page web apps and Progressive Web Apps.
The Playwright for Python library is available in preview and is designed to help accelerate the process of testing web applications across Windows, Linux and macOS. It can also be used to emulate smartphones with different screen sizes, timezones, and web permissions to test a web app in mobile web browsers.
SEE: Hiring Kit: Python developer (TechRepublic Premium)
It provides a set of application programming interfaces (APIs) to automate browsers that use the Chromium, Firefox and WebKit browser engines. Using the Playwright API, developers can write Python code to create new browser pages, navigate to URLs and interact with elements on a page.
“With the Playwright API, you can author end-to-end tests that run on all modern web browsers. Playwright delivers automation that is faster, more reliable and more capable than existing testing tools,” says Arjun Attam, a program manager for Playwright .
“Automated end-to-end tests have become more important than ever before. Teams are shipping faster and building apps that run on a growing set of devices. This increase in velocity and web targets puts immense pressure on the testing process, and automation is critical.”
While presently Playwright only supports mobile emulation from a desktop browser, there is an open issue on Microsoft’s GitHub page for Playwright that users can upvote to bring support for testing on actual mobile browsers.
Playwright integrates with the pytest testing framework and can be used to test views in Django web apps as well as use Django’s built-in testing tools.
Importantly for automated testing, Playwright waits for the web app’s UI to be ready to handle testing actions like clicking a button, which needs to be there before its functionality can be tested. It can also be used to automate tests for logging in to a web app on a login form.
“Under the hood, Playwright uses an event-driven architecture that can listen to precise browser events like DOM changes, network requests and page navigations,” notes Attam.
Playwright also provides standard interfaces to monitor and modify network traffic for testing tasks like handling attachments downloaded by a page and a network response after a user clicks a button.
More on Python and programming languages
- Microsoft confirms Edge to adopt open source Chromium code
- Microsoft’s ‘fake news detector’ is no solution
- Sony Pictures Takes Augmented Reality Users “Into the Spider-Verse” With Mobile Web AR Experience
- Testing in NC schools could get less stressful. Changes in exam rules are coming.
- Cyber Monday 2018: The best tech deals from Apple, Microsoft, Google and more
- The once homeless man bringing web access to the Bronx
- Analysis: Major American companies are making basic security mistakes
- Major American companies are making basic security mistakes
- Who's making sure your mental health app is safe? No one, experts say
- Kickstart a career in back-end development with this training bundle
- Companies tap into an underused but highly capable workforce
- The Morning Download: Reinventing the Future of Work for the Rest of the World
- As Facebook Raised a Privacy Wall, It Carved an Opening for Tech Giants
- THE NOONER for 01-03-19
- Google confirms Allo dies in March 2019, wants people to get Messages
- The Complete Master Class in Coding
- Here’s a roll call of celebrities, politicians and influential people who died in 2018
- AF Safety goes mobile
- 8 simple tricks to keep hackers from ruining Christmas shopping
- From ‘My Brilliant Friend’ to ‘Babylon Berlin,’ American TV went global, and that’s good news
|4 Red Syma Replacement Sets of the Main Rotor Blades for S107 Red Part S107-02 (16 Rotors in all) (check at Amazon)||0.0|
|Before you Know it (Byki) Arabic Deluxe Edition 4.0 - Includes Flash Card Software System for Arabic Language (Byki) (check at Amazon)||0.0|
|GelaSkins Protective Skin for 15.4" PC and Mac Laptops - "Guitar in Sea Major" (check at Amazon)||0.0|
|GoGo Bell Dog Doorbell for Housebreaking / Housetraining / Potty Training Your Poochie to Let You Know When they Need to Tinkle (check at Amazon)||0.0|
|Telemann: Oboe Concerto in G majorConcerto for Oboe, Strings and B.C No.23 in G major (check at Amazon)||0.0|
|More You Do It / Love in All Flavours $13.54 (check at Amazon)||0.0|
|Handel: Music For The Royal Fireworks; Concerto A Due Cori in F Major (check at Amazon)||0.0|
|Vaughan Williams: Concerto in C major for Two Pianos and Orchestra; Symphony No. 5 in D major $20.04 (check at Amazon)||0.0|
|Berwald: Piano Quintet No. 1 in C Minor / Duo in D Major for Pianoforte and Violin / Piano Trio No. 4 in C Major $10.5 (check at Amazon)||0.0|
|Balas Cup For Keurig VUE Brewers Reusable Coffee Filter Works In All Keurig Machine (check at Amazon)||0.0|
|K-cup for Keurig VUE Brewers Reusable Coffee Filter Works in All Keurig Machine (check at Amazon)||0.0|
|KZ-CUP Cup for Keurig VUE Brewers Reusable Coffee Filter Works In All Keurig Machine (check at Amazon)||0.0|
|Loen®Cup For Keurig VUE Brewers Reusable Coffee Filter Works In All Keurig Machine (check at Amazon)||0.0|
|Appletree Design Be Paws You're My Friend Cookie Jar, 12-Inch, You Know Loves Comes In All Shapes and Sizes (check at Amazon)||0.0|
|I Love You 24k Gold Inscribed in 120 Languages Silver Necklace Gifts for Her (check at Amazon)||0.0|
|Persuasion Skills Black Book: Practical NLP Language Patterns for Getting The Response You Want (check at Amazon)||0.0|
|66 Etudes in all Major and Minor Keys for Trombone by Anton Slama, ed. Ralph Sauer (check at Amazon)||0.0|
|TOEFL Reading & Writing Workout: The Essential Practice You Need for the TOEFL Scores You Want (College Test Preparation) (check at Amazon)||0.0|
|Love Talk Workbook for Women: Speak Each Other's Language Like You Never Have Before (check at Amazon)||0.0|
|Oracle Application Express 5 For Beginners (Full Color Edition): Develop Web Apps for Desktop and Latest Mobile Devices (check at Amazon)||0.0|
|Love Talk Workbook for Men: Speak Each Other's Language Like You Never Have Before (check at Amazon)||0.0|
|Parents' Guide to IQ Testing and Gifted Education: All You Need to Know to Make the Right Decisions for Your Child $1.55 (check at Amazon)||0.0|
|God's Word for each day: Leads you through the Bible in a year (God's Word series) $6.97 (check at Amazon)||0.0|
|Spectrum Test Prep: Grade 1 : Test Preparation for Reading, Language, Math (Spectrum Series) (check at Amazon)||0.0|
|What's In the Cards for You?: Test the Tarot (check at Amazon)||0.0|
|Math for Life: Crucial Ideas You Didn't Learn in School $25 (check at Amazon)||0.0|
|Treatment Resource Manual for Speech Language Pathology (with Student Web Site Printed Access Card) (check at Amazon)||0.0|
|Cliff Notes for the Bridge Director's Test: ............and job aid once you become a director (check at Amazon)||4.0|
|Good News for Tough Times: Lifting You Up When Life Lets You Down (check at Amazon)||0.0|
|Advanced MS-DOS Programming: The Microsoft Guide for Assembly Language and C Programmers (check at Amazon)||0.0|
|Scales for the Viola (In the First Position in All Major and Minor Keys) (check at Amazon)||0.0|
|NPR Driveway Moments for Dads: Radio Stories That Won't Let You Go (check at Amazon)||0.0|
|TestSMART Language Arts Grade 4:Help for Basic Language Arts Skills, State Competency Tests, Achievement Tests (check at Amazon)||0.0|
|Reading & Language: If You're Trying to Get Better Grades and Higher Test Scores, You've Gotta Have This Book! $8.44 (check at Amazon)||0.0|
|Leger Domain - 52 Register Studies for Flute - (In all Major and Minor Keys) (check at Amazon)||0.0|
|Big Book of Relationship Quizzes: 100 Tests and Quizzes to Let You Know Who's Who in Your Life $4.88 (check at Amazon)||0.0|
|Careers for Foreign Language Aficionados & Other Multilingual Types (McGraw-Hill Careers for You) (check at Amazon)||0.0|
|WEST-E English Language Arts (020) Secrets Study Guide: WEST-E Test Review for the Washington Educator Skills Tests-Endorsements (check at Amazon)||0.0|
|You Kan Red This!: Spelling and Punctuation for Whole Language Classrooms, K-6 (check at Amazon)||0.0|
|ObamaCare Simplified for Your Business: What you need to know in plain English (check at Amazon)||0.0|
|NES English Language Arts Secrets Study Guide: NES Test Review for the National Evaluation Series Tests (check at Amazon)||0.0|
|God Is in the Small Stuff for Changing Times: Let God Help You Thrive in a Difficult World $5.2 (check at Amazon)||0.0|
|66 Etudes In All Major And Minor Keys For Trombone, Tuba, Bassoon, String Bass (check at Amazon)||0.0|
|Back to School for Grown-Ups: Everything You Should Have Learned in Class (check at Amazon)||0.0|
|Advanced M. S.-DOS Programming: The Microsoft Guide for Assembly Language and C. Programmers (check at Amazon)||0.0|
|America's Top Jobs for People Without a Four-Year Degree: Featuring Good Jobs in All Major Occupations and Industries (check at Amazon)||0.0|
|When People Let You Down--A Book in Honor of Valentine's Day (check at Amazon)||0.0|
|Concerto for Flute & String Orchestra with 2 Horns (optional) in D Major, CW C79 (T. 286/7): Adagio (check at Amazon)||0.0|
|II. Largo From Concerto For Lute (Guitar), Two Violins And Basso Continuo In D Major, RV 93 (check at Amazon)||0.0|
|#20b Aria for Voice and Continuo ("Erbauliche Gedanken eines Tobackrauchers") in G major, BWV 515a (check at Amazon)||0.0|
Microsoft: Playwright for Python language lets you test web apps in all major browsers have 1864 words, post on www.zdnet.com at October 1, 2020. This is cached page on USA Breaking News. If you want remove this page, please contact us.