ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    puppeteer page.type 使用demo

    Oct 21, 20222 min read
     const selector = '#barcode';
      await page.waitForSelector(selector);
      await page.focus(selector); //you need to focus on the textField
      await page.keyboard.type(selector, "1234"); //you are also missing  keyboard  property
    

    相关文章

    linux一键切换软件源脚本

    该脚本是一个用于Linux系统的一键切换软件源的工具,支持Debian和RedHat系发行版,用户可以选择多个国内源进行切换。

    TS 基于 prototype的原始类型判断封装

    该TypeScript代码封装了一系列基于`Object.prototype.toString`方法的类型判断函数,用于确定变量是否为特定类型。

    金融市场的量化交易

    量化交易是一种利用数学模型和统计分析进行自动化投资和交易的策略,广泛应用于金融市场,旨在提高交易效率和盈利能力,同时需注意模型准确性和市场变化带来的风险。

    JS 日期时间转化年月日

    该函数将给定的日期时间转换为"年月日"格式的字符串,使用上海时区。

    CPE "Customer Premises Equipment"(客户现场设备)

    Customer Premises Equipment (CPE) encompasses devices like routers and modems installed at a customer's location to facilitate connectivity to telecommunications or internet services.