Launch Google Chrome and access it's DOM elements
Posted: Sun Aug 11, 2013 2:11 pm
Hi,
I'm trying to automate a webpage using code.
I've tried to use "Record & Play", but it didn't work well for me, because this website is using different ids for each session.
This is the code I'm trying to imitate:
pseudo code:
in Ranorex, I've used the following:
But now, I dont know how to get access to the DOM elements of the process of chrome.
When I tried to use:
I've received objects of "IE", and _NOT_ of the "chrome.exe" process I have launched.
Is there any way at all to do it ?
Thanks for any help.
Regards,
JD.
I'm trying to automate a webpage using code.
I've tried to use "Record & Play", but it didn't work well for me, because this website is using different ids for each session.
This is the code I'm trying to imitate:
pseudo code:
Code: Select all
var document = OpenBrowser("cnn.com", "chrome");
var elements = document.getElementsByTagName("input");
Code: Select all
int procssID = Host.Local.OpenBrowser("cnn.com", "chrome", "", false, false);
When I tried to use:
Code: Select all
Host.Local.Find<WebDocument>("/dom");
Is there any way at all to do it ?
Thanks for any help.
Regards,
JD.