.net - Automate Safari web browser using c# on Windows -


i wondered if had managed, or knew how automate safari web browser on windows platform.

ideally automate safari in similar way using mshtml internet explorer. failing way inject javascript running process fine. i've used javascript injection method automate firefox via jssh plug-in.

i'm looking automate browser using .net enhance existing automation framework watin

edit: whilst think selenium might great choice automating safari in scenarios, use solution not require installing software on server i.e. selenium core or intermediate proxy server in case of selenium remote control.

update: 23-03-2009: whilst i've not yet found way automate safari, have found way automate webkit inside of chrome. if run chrome using --remote-shell-port=9999 command line switches (ref: http://www.ericdlarson.com/misc/chrome_command_line_flags.html) can send javascript browser.

once connected remote debug seesion

  • send debug() attach current tab
  • send javascript command using print, i.e. print document.window.location.href

we've used method add chrome support watin

you might check post here using method described above automate chrome in c#

http://markcz.wordpress.com/2012/02/18/automating-chrome-browser-from-csharp/

martin


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -