C # Selenium or WebBrowser alternative imitating human

Hello everyone that I used Selenium some time ago to create a program to perform automatic actions on a website that I like.

I managed to use Selenium to do what I wanted, without much trouble, the only problem I encountered was to use it in the background.

I could not use it without using other things that I did on the PC, I was thinking about using virtual machines, but I would like to try to avoid this.

Last night I played with the WebBrowser class in C #, and its nice, but limited, I like the way it was contained in the Windows form application itself, so this is what I'm looking for.

Dose anyone knows the best way to integrate the browser’s visual presentation into a Windows form application, but still allows me to simulate a key entry, etc., but it will work in the background.

I heard about things like WaitN, GekoFX, MozNet, etc., but from what I read, I'm not sure if any of them will work.

+5
source share
2 answers

In general, when you try to automate a web page using a browser, you have two options for simulating custom events. You can either simulate them using JavaScript, or use OS-level mechanisms (so-called "native events") to simulate mouse and keyboard events. Both approaches have their pitfalls.

, JavaScript, , , , , . Selenium RC , Selenium WebDriver Firefox IE. . . , " " , CSS :hover, JavaScript, . , JavaScript, JavaScript, , .

, , . , - , , . , , . , API SendMessage, Windows, , , . - API SendInput, API . WebDriver , SendMessage. IE, , SendInput.

, , . PhantomJS - , WebDriver , , #. , .

+6

?

selenium, Watin , , , , .

.Net WebBrowser, , , IE, JavaScript, . , JavaScripts, .

, , , Selenium : Selenium RC?

, :

https://gist.github.com/evandrix/3694955

+1

All Articles