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?
We have a solution that uses both selenium and leanft. The problem is that we have classes that use leanft browser implementation methods and some that use only selenium. The problem is that not everyone on the project has a leanft license. 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
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 BrowserFactory.Attach
with a correct & unique description of that You have several non-technical solutions
Good Luck!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.