Git Product home page Git Product logo

book-script's Introduction

医院刷号脚本

image

工具

  • playwright

说明

尝试抓接口,但是失败了,接口还需要验签,放弃走模拟请求了。想着之前看过 playwright 这类的工具可以做端到端测试,就拿来写自动化脚本试一试,在 ChatGPT 和文档的配合下,发现用 playwright 写自动化脚本还是相当便捷的。

为了测试的时候不需要一直登录,我的做法是将 cookies 和 localStorage 一起保存下来了,但这个网站的授权信息是存在了 sessionStorage 里,playwright 并没有直接可以使用的 API 用来保存 sessionStorage,但是文档给出了一种 Hack 写法,终于实现登录信息持久化。

book-script's People

Contributors

bigbigbo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.