version chromedriver selenium supports

04-selenium等待元素加载、元素使用、xpath的使用

selenium等待元素加载 # 代码操作非常快 》有的标签还没加载 》找就找不到 》就会报错 # 设置等待:显示等待,隐士等待 bro.implicitly_wait(10) # 找某个标签,如果找不到,最多等待10s selenium元素操作 # 点击操作 click() # 写文字 send_ ......
元素 selenium xpath 04

Selenium(2)

​ 一、安装Selenium pip install selenium 二、八大元素定位 要想操作 Web 界面上的元素,首先要定位到该元素,Selenium 提供了定位元素的 API,这些方法都被定义在 WebDriver 类中,这些方法都以 find 开头。一共有如下八种: from time ......
Selenium

Selenium(3)

一、特殊元素 1.有些元素它是不可见的( div ) style='display:none' 2.有些元素是隐藏的 hidden 3.有些元素是不可用的 disabled=disabled 灰色 4.有些元素是不可编辑的 readonly=readonly ... 二、特殊场景 1.frame/i ......
Selenium

Selenium(1)

一、Selenium简介Selenium是一个用于Web 应用程序的自动化测试工具。Selenium测试直接运行在浏览器中,就像真正的用户在操作一样。 主要功能包括:测试与浏览器的兼容性(测试你的应用程序是否能够很好的工作在不同浏览器和操作系统之上)。测试系统功能(创建回归测试检验软件功能和用户需求 ......
Selenium

appium报错DeprecationWarning: desired_capabilities argument is deprecated and will be removed in future versions. Use options instead.

不再用desired_capabilities,用options代替 原来的 desired_caps = { "platformName": "ios", "platformVersion": "11.4", "deviceName": "iPhone 6 Plus", "noReset": Tr ......

(selenium) 让浏览器在 webdriver 调用后保持打开状态

在使用 selenium 进行 webdriver 测试时,浏览器在调用完后将会自动关闭,即使没有调用 "driver.close()"。 有时候,可能需要特意将 浏览器保持开启状态,此时需要使用 detach 参数 # 'detach' = True 将不会自动关闭 options.add_exp ......
webdriver selenium 浏览器 状态

check the manual that corresponds to your MySQL server version for the right syntax to use near 'describe,

form: { repairstatus: 0, name: '',//负责人 maintenancetime: new Date().toISOString().split('T')[0],//保修时间 equipmentid: '', equipment: '', describe: '', f ......
corresponds the describe version manual

Maximum And Queries (hard version)

题目传送门 感觉这题比 \(\rm F\) 难啊,\(\rm F\) 就是个板子,但为啥这题是蓝的,\(\rm F\) 是紫的。 思路 首先考虑 \(nq\) 怎么做。 发现很简单,按位贪心就行了。 具体地说,从大到小枚举二进制位,判断答案中能否出现这一位,若 \(i\) 当前这一位没有值,那么必须 ......
Maximum Queries version hard And

Python+Selenium+Pytest+Allure+Jenkins实现的Web自动化框架

目录一、测试的项目二、需求分析三、用例设计-部分用例举例四、框架说明4.1 测试框架结构图如下:4.2 项目功能五、代码设计与功能说明5.1 POM简介:Page Object Modle页面对象模型5.2 基础封装层:pages/basePage.py5.3 PO页面对象层:pages/userL ......
框架 Selenium Jenkins Python Pytest

python_selenium定位页面元素

页面元素常用的定位方法有id、name、css、xpath id和name直接通过对应的值定位 class属性值有多个值时,使用css选择器定位只需要其中一个属性值即可,使用xpath时,属性值需要全部写上 示例:<input type="" autocomplete="on" placeholde ......

26.selenium 多浏览器处理

目录 多浏览器测试介绍 多浏览器测试实现 多浏览器测试背景 用户使用的浏览器(firefox,chrome,IE 等) web 应用应该能在任何浏览器上正常的工作,这样能吸引更多的用户来使用 多浏览器测试概述 是跨不同浏览器组合验证网站或 web 应用程序功能的过程 是兼容性测试的一个分支,用于保持 ......
selenium 浏览器 26

python_使用selenium进行webui测试的浏览器驱动安装步骤

以chrome浏览器为例。(前提是:python和pycharm安装成功,且能正常运行) 1、查看chrome浏览器的版本 方式一: 打开 Chrome 浏览器。 在浏览器右上角,点击三个点的图标。 在弹出的菜单中,选择“设置”。 在设置页面中,滚动到底部,点击“关于 Chrome”。 在关于 Ch ......
selenium 步骤 浏览器 python webui

E2. Game with Marbles (Hard Version)

E2. Game with Marbles (Hard Version) The easy and hard versions of this problem differ only in the constraints on the number of test cases and $n$. In ......
Marbles Version Game with Hard

Only the invariant culture is supported in globalization-invariant mode. See https://aka.ms/GlobalizationInvariantMode for more information

错误信息:全球化不变模式只支持不变文化。看见https://aka.ms/GlobalizationInvariantMode了解更多信息 修改引用配置即可:<InvariantGlobalization>true</InvariantGlobalization> 改为false Only the ......

405错误---Request method 'POST' not supported

错误: Request method 'POST' not supported -- 方法不支持 解决: 多数情况下, 是由于GET,POST,DELETE,PUT等方法类型不一致导致的。 所以将请求方法改回就好。例:此处的@Get方法改为@Post ......
supported 错误 Request method 39

一个完整Python实战项目:selenium识别验证码实现自动登录,自动操作浏览器获取某东数据

最近都没啥时间,很久没更新了。 今天分享一下,如何用selenium识别验证码,实现自动登录以及获取数据。 目标:某东 话不多说直接开始 准备工作 环境 Python 3.10 Pycharm 模块使用 import random import time from selenium import w ......
实战 selenium 浏览器 项目 数据

Selenium自动化之弹窗处理

1.前言 我们在使用Selenium做Web自动化测试时,页面经常出现弹窗,如果不处理后续的测试脚本就无法正常运行,今天我们就带大家一起来学习如何处理Web页面上的弹窗。 2.Web页面弹窗的分类 弹窗通常有3种:Alert类型弹框、Confirm类型弹框、Prompt类型弹框,这种我们无法通过定位 ......
Selenium

Python+Selenium4自动化之JS属性

应用场景 在自动化中, 能对JS代码进行增、删、改的话,可以帮助我们解决很多问题, 如:修改<a>标签的target属性,让它不打开新的窗口(_blank),从而不用频繁使用switch_to进行窗口之间的切换。 如:日期的输入框被锁定无法直接输入,需要点开日历控件后,从日历控件上点击日期,这时就可 ......
Selenium4 Selenium 属性 Python

软件测试/测试开发|Python selenium CSS定位方法详解

简介 CSS选择器是一种用于选择HTML元素的模式。它允许我们根据元素的标签名、类名、ID、属性等属性进行选择。CSS选择器的语法简单而灵活,是前端开发中常用的定位元素的方式。 selenium中的css定位,实际是通过css选择器来定位到具体元素,css选择器来自于css语法。CSS定位有以下显著 ......
软件测试 selenium 方法 Python 软件

软件测试/测试开发|selenium NoSuchDriverException问题解决

前言 我们在使用selenium进行web自动化测试时,有时候会遇到NoSuchDriverException的问题,这个异常通常是由于WebDriver无法找到指定的浏览器驱动而引起的。在这篇文章中,我们将讨论NoSuchDriverException的原因以及如何解决这个问题。 NoSuchDr ......

Selenium 爬虫

from pixiv 相关资料 官网 官网使用介绍 可能会遇到的问题:selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service chromedriver.exe while openi ......
爬虫 Selenium

启动springboot的测试类,报红:Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended

启动springboot的测试类时, 报红:Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has bee ......

Windows 10, version 22H2 (updated Dec 2023) 中文版、英文版下载

Windows 10, version 22H2 (updated Dec 2023) 中文版、英文版下载 Windows 10 22H2 企业版 arm64 x64 请访问原文链接:https://sysin.org/blog/windows-10/,查看最新版。原创作品,转载请保留出处。 作者主 ......
英文版 中文版 Windows version updated

Windows 11 version 23H2 中文版、英文版 (x64、ARM64) 下载 (updated Dec 2023)

Windows 11 version 23H2 中文版、英文版 (x64、ARM64) 下载 (updated Dec 2023) Windows 11, version 23H2,2023 年 12 月更新 请访问原文链接:https://sysin.org/blog/windows-11/,查看 ......
英文版 中文版 Windows version updated

Windows 10 on ARM, version 22H2 (updated Dec 2023) ARM64 AArch64 中文版、英文版下载

Windows 10 on ARM, version 22H2 (updated Dec 2023) ARM64 AArch64 中文版、英文版下载 基于 ARM 的 Windows 10 请访问原文链接:https://sysin.org/blog/windows-10-arm/,查看最新版。原创 ......
英文版 ARM 中文版 Windows version

CF1909F1 Small Permutation Problem (Easy Version)

给定一个长度为 \(n\) 的数组 \(a\),其中 \(a_i \in [1, n]\),试计算满足以下条件的 \([1, n]\) 的排列 \(p\) 的个数: \(\forall i \in [1, n], \sum_{1 \le j \le i} [p_j \le i] = a_i\) \( ......
Permutation Problem Version 1909F Small

CF1909F2 Small Permutation Problem (Hard Version)

给定一个长度为 \(n\) 的数组 \(a\),其中 \(a_i \in [-1, n]\),试计算满足以下条件的 \([1, n]\) 的排列 \(p\) 的个数: \(\forall i \in [1, n], \text{有 }\sum_{1 \le j \le i} [p_j \le i] ......
Permutation Problem Version 1909F Small

G2. Light Bulbs (Hard Version)

G2. Light Bulbs (Hard Version) The easy and hard versions of this problem differ only in the constraints on $n$. In the hard version, the sum of value ......
Version Bulbs Light Hard G2

CodeForces 1909F2 Small Permutation Problem (Hard Version)

洛谷传送门 CF 传送门 感觉这个题还是挺不错的。 考虑 F1。考察 \(a_i\) 差分后的意义,发现 \(a_i - a_{i - 1}\) 就是 \((\sum\limits_{j = 1}^{i - 1} [p_j = i]) + p_i \le i\)。 考虑将其转化为棋盘问题。在 \(( ......

CF1883G2 Dances (Hard Version)

Problem - D2 - Codeforces Dances (Hard Version) - 洛谷 Hint1: 对于 \(C[i]\) 的答案上界和下界分别是多少? Hint1.1: 记 \(C[i]_1\) 时的答案 \(ans\),答案范围显然是 \([ans,ans+1]\) Hint ......
Version Dances 1883G 1883 Hard
共1020篇  :2/34页 首页上一页2下一页尾页