use MS playwright-python for testing automation

https://github.com/microsoft/playwright-python

  1. install playwright-python
    pip3 install playwright

  2. install webkit
    python -m playwright install

  3. generate code
    python -m playwright codegen –target python -o mytest.py -b webkit https://portal.azure.com/#home
    Login Azure and do some operations in the WebKit window, then close it, you will get mytest.py generated in same directory, uploaded mine to github:
    https://github.com/zhuby1973/azure/blob/main/mytest.py

  4. python mytest.py

29 Replies to “use MS playwright-python for testing automation”

  1. Thanks on your marvelous posting! I genuinely enjoyed reading it, you can be a great author. I will be sure to bookmark your blog and will often come back in the foreseeable future. I want to encourage you to ultimately continue your great work, have a nice day!| Rivalee Izaak Egin

  2. I was very happy to find this web site. I wanted to thank you for your time for this fantastic read!! I definitely enjoyed every little bit of it and I have you book marked to see new things on your web site. Mia Ellswerth Ontina

  3. After looking at a number of the blog posts on your web page, I really like your way of blogging. I book marked it to my bookmark site list and will be checking back in the near future. Please visit my website as well and tell me what you think. Eugenie Howey Anatole

  4. I blog often and I truly thank you for your content. This great article has really peaked my interest. I am going to take a note of your site and keep checking for new details about once a week. I opted in for your RSS feed too. Cherise Benjie Hedve

  5. wonderful points altogether, you simply received a emblem new reader. What might you suggest about your put up that you just made some days ago? Any sure? Daria Care Barbaresi

  6. The good Lord that have started His good work in you,will surely be there to carry u ad to bring it to perfection. I rejoice with You dor this great expansion. sir. It is well in Jesus name. Kelcey Arturo Jacy

  7. kbT3eB This is very interesting, You are a very skilled blogger. I ave joined your rss feed and look forward to seeking more of your great post. Also, I have shared your web site in my social networks! Margarethe Gerhard Rind

  8. Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a little bit, but instead of that, this is wonderful blog. A fantastic read. I will definitely be back. Roselle Bryce Bayer

  9. Thanks for a marvelous posting! I seriously enjoyed reading it, you may be a great author. I will be sure to bookmark your blog and may come back in the future. I want to encourage continue your great work, have a nice weekend! Elisabet Dick Lipinski

  10. You’re so awesome! I do not think I’ve read something like this before. So nice to find another person with a few original thoughts on this issue. Seriously.. many thanks for starting this up. This web site is one thing that is needed on the internet, someone with a bit of originality. Danila Salvidor Teryn

  11. Hiya, I am really glad I have found this info. Today bloggers publish only about gossip and net stuff and this is really frustrating. A good site with exciting content, this is what I need. Thanks for making this site, and I will be visiting again. Do you do newsletters by email? Electra Herbie Alejo

  12. Basically to follow up on the update of this topic on your web page and
    would wish to let you know just how much I valued the time you took to produce this valuable post.

    Within the post, you spoke of how to really handle this matter with all ease.
    It would be my pleasure to get together some more concepts
    from your site and come as much as offer people what I learned from you.
    Thank you for your usual good effort.

    Here is my web site drivingcomplaints.net

Leave a Reply

Your email address will not be published. Required fields are marked *