Element can be click when out of view
Posted 悟空救我呀
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Element can be click when out of view相关的知识,希望对你有一定的参考价值。
WebDriver can‘t action the element when out of view
Webdriver can‘t action the element when the element is out of view
1. Scroll to the element
use javascript to scroll the element to view
((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].scrollIntoView(true);", element);
2. Use Location to view
Use LocationInView property need use RemoteWebdriver and RemoteWebElement
Code like:
RemoteWebdriver rw = new RemoteWebdriver(); RemoteWebElement re = rw.FindelementOnPage(By.Id("id")); re.LocationInView;
以上是关于Element can be click when out of view的主要内容,如果未能解决你的问题,请参考以下文章
can not be used when making a shared object; recompile with -fPIC
can not be used when making a shared object; recompile with -fPIC
can not be used when making a shared object; recompile with -fPIC
ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBA
C++链接报错:which may bind externally can not be used when making a shared object; recompile with -fPIC
C++链接报错:which may bind externally can not be used when making a shared object; recompile with -fPIC