Using Watin but Want to enter CaptCha manually! - watin

I'm using Using Watin with my project..I want all the things to be automated and Watin is doing that well. But I need the captha entry part to be done! I have to do this manually! Is there any way to popup an input box to get the Captcha Value and Watin will continue then???
Any help would be appreciated!

I've implemented that exact functionality on this PoC API_GMail.cs I wrote for the O2 Platform.
Here is a video of it in action http://www.youtube.com/watch?v=rTD31e7HY4E
Here is the WatiN ExtensionMethods that make it easy to consume from a script: WatiN_IE_ExtensionMethods.cs

Related

Test GrapesJs Editor With Cypress

We are using grapesjs to create an application editor. We want to validate that all the components we create can be used in Grapesjs. To do it, we want to write e2e tests using UI to simulate a final user. I'm using Cypress for automation but didn't have any luck dropping block inside the grapes iframe. Any help regarding this would be highly appreciated.
Me and my coworker tryied for 2 weeks, both Cypress and the rest of the tools on the market couldn't drag and drop a block of GrapesJs inside it's iframe :/
You can follow the issue from GrapesJs: https://github.com/artf/grapesjs/issues/3721
And a discussion i opened in Cypress's repo:
https://github.com/cypress-io/cypress/discussions/17979
Last month, i find this option, but i didn't try to set it as false on grapesjs.init, can you test it?
https://github.com/artf/grapesjs/blob/dev/src/editor/config/config.js#L111

In order to add new functionality to existing Firefox clients, do I need to create an extension or a plugin?

More specifically, the idea is to allow the user to open Firefox, highlight a word on a web page, right click on it, and have an additional option that, when selected, calls c++ code that does something with the input string (must call C++ code, unfortunately), and displays a dialog box showing the result.
I'm still not sure if in order to implement this functionality I need to create a Firefox plugin or an extension. Can someone point me in the right direction?
Also, if someone can show me sample code in order to get me started that would be appreciated. (XPCOM, which I'm not even sure is what I should be using, seems a bit complicated for this seemingly simple project.)
You need a regular Firefox extension. It can add an item to the context menu, NPAPI plugins cannot do this. When it is clicked it can get the selected text and send it to your binary library. The best way to call functions in this library is js-ctypes, XPCOM is not required.

Watin UploadiFy

I am using WatiN for browser automation. But today i ended up in a problem where i need to call the flash object (uploadify button) in my asp.net page.
This code seems working fine, but doesn't show any actions
Element ele = window.Element(Find.ById("uploadifyUploader"));
ele.Click();
Is there a way to achive this in WatiN.?
Watin is not able to access flash objects.
You can try AutoIt library.
Or use javascript library. For example this: http://www.permadi.com/tutorial/flashjscommand/

Selenium IDE and telling it to record actions

I am trying to make a little application to allow to record actions within a Flash and Silverlight application. In such manner that you can compile your interactive application in test-mode and then be able to click on elements which then passed the action to Selenium IDE which then adds this command to the testcase.
I am curious if this even possible and how I can achieve this in Firefox?
There is a new plugin for Se-IDE called 'Flex Pilot X' which works with External Actions exposed through Flex Pilot. Adam Christian (who wrote it) demonstrated it at the SFSE meetup last month; which was recorded and viewable at http://saucelabs.com/blog/index.php/2010/04/highlights-from-our-april-20th-selenium-testing-tools-demo-night/
-adam

How to add GtkMozEmbed browser into a tab with Ruby/Glade/GtK?

I am trying to add a browser using GtkMozEmbed into a gui I am designing using Glade. I want the browser to take up a tab in a notebook widget, but I cannot figure out how to actually do this. I am wondering what container to use to put the browser in, and the associated ruby code to actually embed the browser in this container. Any help would be appreciated thanks!
What I ended up doing eventually was to insert a window element into the tab, and in the ruby code associated with the glade file configure the GTKMozEmbed there. I do not think it is possible to get it setup using the Glade GUI, so you will have to get down into the code for this.
To add a new tab with any widget use this.

Resources