如何验证该按钮已启用并且在页面上不存在? [英] How to verify the button is enabled and does not exist on the page ?

查看:67
本文介绍了如何验证该按钮已启用并且在页面上不存在?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我想确认页面上没有可用的按钮.

I would like to verify that a button is not available in the page. 

下面是我的代码:-

但是当我运行代码时,测试失败,因为该按钮在页面中不可用,但在背景中的某个位置仍然可用

but when I run the code , the test get failed because the button in not available in the page, but it still available somewhere in the background

当我按F12键时,我可以看到该按钮的详细信息和属性.

when I press F12 , I could able to see the details and properties of that button.

有人可以帮我解决这个问题.

Can someone please help me in this Issue.

谢谢

PV

PV

推荐答案

我没有时间进行完整答复,但是请看一下TryGetClickablePoint方法.它应该允许您做自己想做的事
I don't have time for a full response, but please have a look at the TryGetClickablePoint method. It should allow you to do what you want


这篇关于如何验证该按钮已启用并且在页面上不存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆