0

I need a way to control Google Chrome from .net code (such as the Web Browser for IE). In my code I have to access Chrome Application so the standards solution did not work. I already tried the Awesomium and webkit .net.

If there is an alternative way in any developing language I'm willing to try it as well.

Thanks!

mangini
  • 4,179
  • 2
  • 19
  • 23
Tal Yaari
  • 463
  • 6
  • 15

2 Answers2

0

Take a look at Selenium .Net - it's meant to help with unit testing web applications, but you can use it to arbitrarily control different browsers from within .Net.

PhonicUK
  • 13,486
  • 4
  • 43
  • 62
0

You might try Automation UI, for instance, you can use Inspect.exe to get every handle of almost every window and child controls, such as buttons, see the highlighted rectangle.

enter image description here

Given these UI AutomationElement handles, you can do almost everything you can do interactively.

David
  • 15,894
  • 22
  • 55
  • 66
  • last time I tried this some things were working, some not - are you able to pick a text, links etc. – NSGaga-mostly-inactive Apr 11 '13 at 13:09
  • I would say at least 90% works, other than some really advanced requirement, such as this one: http://stackoverflow.com/questions/15808546/get-win32-legacy-controls-tooltip-text-programmatically, I have offered 150 bounties, but still no satisfactory reply. – David Apr 11 '13 at 13:10
  • I may take a look at it if bounty is still on :) I did play with it as well - I needed more around '**text**' stuff and that wasn't great, working, but – NSGaga-mostly-inactive Apr 11 '13 at 13:12