Selenium webdriver disabled on browser start? - c#

I am using the Selenium Firefox web driver and attempting to start an existing profile which I have created specifically for Selenium.
Firefox starts up with the correct profile, but the web driver shows as disabled in the extensions and therefore Selenium fails to connect to the web driver. How can I make sure that it starts with the extension enabled?
I would post code, but the code is working properly and the correct profile is used. This is a Firefox configuration issue I believe. If I let Selenium create a temp profile it works fine, but I need access to one of the extensions that I have setup as well as the configuration for that extension. I saw that it is possible to load extensions through code but I don't know how I could load an identical configuration.

Related

LeanFT 15.0.2 is not identifying Web Elements in MSEdge

We am using LeanFT with C# to automate my Sample Web Application which is heavily used in IE only. Since microsoft is ending support with IE, we are moving the tests to MSEdge where there are certain components which will be loaded in Browser if and only if I enable the EDGE browser to use IE server mode
Now once the IE Server mode is enabled on MSEdge, the browser is launching and the URL is being navigated. But when I enable Object spy two identify an element for my OR file, the browser view window is completely shown as IEserverWindow ( i.e Standard Desktop Windows ) and the web elements can't be identified
I had enabled UFT extension on browser by manually loading unpacked extension on Edge
Added the NativeMessgaingHost key
We need to upgrade to UFT 2021
https://admhelp.microfocus.com/uft/en/2021-2021_R1/UFT_Help/Content/Addins_Guide/Chrome_Chromium_FF_Limitations.htm#IE

How do I embed Developer Tools into GeckoFx web browser?

I'm building a developer-themed browser in a C# .NET Windows Form Application and want to allow users to use Chrome or Firefox DevTools to edit/debug the current page they are viewing. I have found several repositories online but none of them seem to be what I want.
Example Chrome DevTools
Example Firefox DevTools
The project uses Geckofx60.64 to create an embedded Gecko web browser. I have already tried debugger.html on GitHub but that didn't help me. All I need is a simple way to show website developer tools for any link.
If this is not possible, are there some other developer tools that I might be able to use with this project?

Use selenium to log in chrome with different user

Now I want to do automated web testing with selenium in Specflow, and I have several credentials to test. The question is How to switch domain to log in chrome browser with C# code in selenium. I have tried the solution in this But I found the new chromedriver() cannot be modifiied. I can do manually change the domain by shift and right click chrome browser to run as a different user, but I can't solve it automaticaly.

Headless 'browser' solution without delivering the browser

So, I want to automate actions on my website (including some Javascript execution and XPath element findings, performing click/type events) but the thing is that I don't want the endpoint users to install any third party software.
Been looking through many solutions and found out that selenium would be a great solution for my needs, however:
It does require endpoint user to have Google Chrome / Firefox browser installed in case of using chrome/firefox driver that support headless browsing.
So I kept searching and found CefSharp which would embed the browser into my application. That however, it's really a boilerplate solution without the ability to find elements by XPath and compared to selenium is less functional.
My question is:
Are there any other solutions (for C#) for having a functional headless browser, without requiring the endpoint user to have the browser installed so that I could deliver my binary as a ready to use?

C# - How to control chrome browser

I wanted to make an application wherein you specify the name of the websites, your username and password and that application automatically logs in to all your accounts in the specified websites. I have done this using windows form application, using a web browser. But i wanted my application to open all these websites in chrome and log it in there. Plz Help
I'd check out the chrome API failing that
Look into getting a handle to the window through window API calls
But why not just a chrome extension?!? Miles simpler
Have a look at Selenium WebDriver
Doing a quick Google search for "chrome C# api" turned up a number of results I think you may find relevant.
I thought the following were particularly promising, if you're willing to accept a few concessions:
Automating Chrome Browser from C#
ChromeDevTools; a C# Library to interact with Chrome's Developer Tools
Chrome Debugging API

Categories

Resources