Git Product home page Git Product logo

chromedp-case01's Introduction

chromedp-case01

这是基于chromedp编写的使用case,里面使用到的内容基本能满足日常需求,现在对外开源 提供给大家参考


(Based on the automated playback project of the School of Continuing Education, Jilin University of Finance and Economics)

涉及到的知识点:

  1. SendKeys 根据对应的选择器输入指定input框value内容
  2. Click 根据对应选择器点击按钮
  3. WaitVisible 根据选择器等待页面直到加载出对应标签元素
  4. Sleep 睡眠,主要用于等待页面加载完毕 避免程序死循环
  5. Nodes 根据选择器选择获取对应标签
  6. Withtimeout 给Context上下文设置超时时间,避免某些操作卡死后导致程序无法正确结束
  7. Targets 获取当前页面的targetId,以及子targetId 进行创建新的Context上下文来操作下一个页面

郑重声明

仅供学习交流,严禁用于商业用途

chromedp-case01's People

Contributors

cnharley avatar

Stargazers

dgo2dance avatar  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.