[英]cast leanft browser to selenium driver
Is there a way to cast and convert the browser object that leanft uses to use selenium Iwebdriver object and toggle those leanft specialized identification methods when we need to? 有没有一种方法可以转换和转换leanft用来使用硒Iwebdriver对象的浏览器对象,并在需要时切换这些leanft专门的标识方法?
We have a solution that uses both selenium and leanft. 我们有一个同时使用硒和leanft的解决方案。 The problem is that we have classes that use leanft browser implementation methods and some that use only selenium. 问题是我们有使用leanft浏览器实现方法的类,而有些仅使用硒。 The problem is that not everyone on the project has a leanft license. 问题在于,并非项目中的每个人都拥有leanft许可证。 So they cant run the full automation code. 因此,他们无法运行完整的自动化代码。 But for others that have a license we should be able to use the specialized locator methods. 但是对于其他拥有许可证的人,我们应该可以使用专门的定位器方法。
You can't cast a leanft browser to selenium driver 您无法将leanft浏览器转换为Selenium驱动程序
But you can do the other way around. 但是您可以采取其他方法。
AddExtension
])( https://seleniumhq.github.io/selenium/docs/api/dotnet/html/M_OpenQA_Selenium_Chrome_ChromeOptions_AddExtension.htm ) method (即对于Chrome,您可以使用[ AddExtension
])( https://seleniumhq.github.io/selenium/docs/api/dotnet/html/M_OpenQA_Selenium_Chrome_ChromeOptions_AddExtension.htm ) BrowserFactory.Attach
with a correct & unique description of that 使用BrowserFactory.Attach
带有正确且唯一的描述 You have several non-technical solutions 您有几种非技术解决方案
Good Luck! 祝好运!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.