host.local.find problem : Automation API

host.local.find problem

Class library usage, coding and language questions.

host.local.find problem

Postby meterrr » Thu Jun 16, 2011 11:17 am

i have got folowing code
Code: Select all
            Host.Local.OpenBrowser(url, "ie", true);
            var WebDoc = Host.Local.Find("/dom");
            foreach (WebDocument item in WebDoc)
            {
                Console.WriteLine(WebDoc.Count.ToString());
                Console.WriteLine(item.ToString());
            }

but id doesn't find anything
where is the problem ?
meterrr
 
Posts: 2
Joined: Thu Jun 16, 2011 11:12 am

Re: host.local.find problem

Postby Support Team » Thu Jun 16, 2011 1:31 pm

Hi,

The code looks okay. Did you check with Spy if there is a DOM object available? I tried this code on my machine and it is working as expected.

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 4843
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests