I am trying to integrate Mozilla Firefox into C# winform application. i downloaded the xulrunner(v1.1.19) and geckofx
Everything is running fine but
i want to add default Mozilla dictionary/spelling check option to the context menu just as default Mozilla....??? how to do it
These SpellCheckEngine unittests from geckofx-16.0 may point you in the right direction.
They provide some example of how to manipulate the spell checking engine.
Related
I want to create my own option in the context menu that appears on right clicking anywhere on the chrome browser.
I tried looking into solutions and this one so far seems to have the answer to my problem:
Adding an option to the right click menu for a chrome extension
However, I don't understand how to create the manifest file / use it with C# ChromeDriver ? (Chromium)
Another code I found on another similar problem which might be helpful
Chrome Extension add option to right click context menu
Not possible currently in chrome, As far as my search went to.
However it is possible to implement whatever functionality was needed by other means..
I have successfully loaded my chrome profile with selenium that has pre-installed extensions.
The extension in question is called Private Internet Access, but i have tried others and cannot communicate with them
I am trying to figure out how i can open the extension below and enter username&password and click login button. I have tried finding the elements in by id and class but it doesnt find them. Can someone point me down the right line for this. Thanks
I've not had the ability to try this - however I've done a lot of work with Selenium and I've created my own chrome extension.
That extension popup in the top right actually a different web page. You won't be able to interact with it due to how it's presented, but you can navigate to it.
Try this:
Open up your extension, right click anywhere and select Inspect. This will open up devtools for the popup.
In devtools, go to the console and type document.url. This will give you the URL of that popup page. (you'll also see it at the top of the title bar)
That gibberish-looking bit in the middle doesn't change - it's your chrome extension identifier. From when I created my extension and 18 months worth of updates (including migrating from chrome extension manifest v2 to v3) it has not changed for me. I think you'll be safe to use it.
Go to that URL to make sure it works. In my case it's chrome-extension://ojhcleddagaoaplflbafhpekcciikdop/popup.html
You'll notice you'll lose some of the page styling compared to the popup. When you design the popup you give it fixed dimensions - when you open it as a normal webpage, you lose that and everything gets stretched.
Finally - for your automation - put that chrome-extension:\\ url as the first step in your selenium script and do your sign in. Then, carry on with the rest of your test.
Here is what I got:
an upload button, which works through silverlight if it is installed, or through html5 if there is no silverlight. So, I have 2 browsers to test: Chrome and IE. I did common uploading by sending keys to input element and it works good in chrome, but when it comes to IE - it is trying to use silverlight.
My question is how to disable silverlight or maybe there are some workarounds?
I found out that it is an add-on, so if somebody knows how to disable add-ons or launch iedriver with switches, please, let me know.
I looked through many documents about webdriver and it seem to be no way to disable add-ons or add switches for now. I hope this will save somebody's else time.
I want to write ie based web developer tool with find element feature. i am using c# and wpf and my application should looks like ie developer tool:
or firebug:
Any suggestion?
To consolidate a bunch of answers:
You can either:
Host IE in your app
Make an IE plugin
To highlight an area, you should look at http://www.codeproject.com/KB/dotnet/NetHtmlEventHandler.aspx
my objective is to attach a context menu (vista and win7) whenever user right clicks a picture/file.
I've got the file portion down (ie, they right click on a file and my menu shows up) but I am having trouble understanding what I would need to do in terms of right clicking in firefox or ie .
I am trying to add a context menu whenever someone right clicks on an image file in IE or firefox. is that possible?
If you want to plug in to what happens inside the user's browser, you should probably write a browser extension to do that, instead of trying to hack up something awful that sort of does what you want maybe.
The best solution would be to develop a plug-in for the browser used by your user, whether it be for Internet Explorer, FireFox or Chrome etc..
Trying to create some sort of hack will only lead to a bad experience for your user so it's better to develop something that would work properly.
Here's a few links to get you going in the right direction:
Google Chrome: http://www.mattcutts.com/blog/write-chrome-extension/
Mozilla FireFox: https://developer.mozilla.org/en/Gecko_Plugin_API_Reference/Plug-in_Development_Overview
(I can't seem to find any for Internet Explorer)
I'm sorry i cannot give you a definitive answer but hopefully this should get the ball rolling for you at least.
is that possible?
NO
For Browsers: You need to develop an extension for each browser you want to support
For Desktop: http://www.codeproject.com/KB/cs/dateparser.aspx (ignore all the stupid istruction about how to catch the datetime )