当前位置:网站首页>Katalon uses script to query list size
Katalon uses script to query list size
2022-07-04 04:11:00 【Spinach in spring】
background : The location of table objects in the automation scene is dynamic , What if we get it based on dynamics , In the example below, the position of the object is at the last position , So I just need to know the size of this group of element objects . If the location is elsewhere , You can consider adapting to the loop to query , Welcome to exchange
import com.kms.katalon.core.webui.driver.DriverFactory as DriverFactory
import org.openqa.selenium.WebDriver as Webdriver
import org.openqa.selenium.By as By
import org.openqa.selenium.WebElement as WebElement
' obtain driver'
Webdriver driver = DriverFactory.getWebDriver()
' Find a set of element objects '
List elementsList_P = driver.findElements(By.xpath('//*tr/th/div'))
' As long as the query operation is in which column '
int col_num = elementsList_P.size()
' This can be referenced as a parameter , for example XPATH'
println(' Total train length :' + col_num)stay XPATH reference Katalon Parameterization of controls in _ Spinach blog in spring -CSDN Blog
边栏推荐
- 三年进账35.31亿,这个江西老表要IPO了
- Introduction to asynchronous task capability of function calculation - task trigger de duplication
- 2021 RSC | Drug–target affinity prediction using graph neural network and contact maps
- 干货!基于GAN的稀有样本生成
- Cesiumjs 2022^ source code interpretation [0] - article directory and source code engineering structure
- Flink学习7:应用程序结构
- Cesiumjs 2022^ source code interpretation [0] - article directory and source code engineering structure
- 渗透实战-SQLServer提权
- Wechat official account web page authorization
- Reduce function under functools
猜你喜欢

EV6 helps the product matrix, and Kia is making efforts in the high-end market. The global sales target in 2022 is 3.15 million?

Katalon中控件的参数化

渗透实战-SQLServer提权

2021 RSC | Drug–target affinity prediction using graph neural network and contact maps

'2'>' 10'==true? How does JS perform implicit type conversion?

毕业设计:设计秒杀电商系统

【CSRF-01】跨站请求伪造漏洞基础原理及攻防

Katalon框架测试web(二十六)自动发邮件
![[csrf-01] basic principle and attack and defense of Cross Site Request Forgery vulnerability](/img/46/cb5a10ffe3fcdffb7da68dbaef5b1f.png)
[csrf-01] basic principle and attack and defense of Cross Site Request Forgery vulnerability

The difference between bagging and boosting in machine learning
随机推荐
A review of reverse reinforcement learning at Virginia Tech (VT)
透过JVM-SANDBOX源码,了解字节码增强技术原理
SDP中的SPA
Huawei cloud Kunpeng engineer training (Guangxi University)
Is it safe to buy insurance for your children online? Do you want to buy a million dollar medical insurance for your children?
程序员远程办公喜忧参半| 社区征文
投资深度思考
新型数据中心,助力加快构建以数据为关键要素的数字经济
选择排序与冒泡排序模板
CUDA basic knowledge
Katalon framework test web (XXVI) automatic email
线程常用的方法
Objective-C description method and type method
Pytest multi process / multi thread execution test case
Deep thinking on investment
图解网络:什么是热备份路由器协议HSRP?
潘多拉 IOT 开发板学习(HAL 库)—— 实验6 独立看门狗实验(学习笔记)
'2'>' 10'==true? How does JS perform implicit type conversion?
CesiumJS 2022^ 源码解读[0] - 文章目录与源码工程结构
[paddleseg source code reading] normalize operation of paddleseg transform