selenium-webdriver - 元素不可点击以及如何检查必填字段
问题描述
`i have "Add Driver" feature in that so many fields are there all are
mandatory..if i will not enter any data into fields ,it will display
"field is required message",,for this how can i write selenium script`.
WebDriverWait wait2 = new WebDriverWait(driver, 20);
wait2.until(ExpectedConditions.elementToBeClickable(By.xpath("//a[contains(text(),'Add Driver')]"))).click();
i didn't get how to write logic i m new selenium help me..
解决方案
推荐阅读
- python - 到同一 DF 中最近点的距离
- pytorch - 当我尝试将 onnx 文件转换为 caffe2 时发生运算符翻译错误
- c++ - 如何找到添加两个变量的所有可能组合,每个变量都附加到一个乘数,总和为给定数字(cin)?
- c++ - 字符串比较中的意外输出
- javascript - 自定义密码要求的正则表达式
- listview - 如何在flutter的页面中添加listview和tabbarview
- angular - 我无法在角材料垫选择中填充保存的百分比值
- mysql - 对话属于多个用户,但用户 A 删除而用户 B 不删除。我们如何防止它被退回?
- java - SparkSql Aerospike Java 连接器
- java - 如何在 Spring Boot 中从资源服务器中的令牌中提取声明