Forum Discussion
szein
13 years agoOccasional Contributor
hello,
seems that now it works (but i am sure there is better solution)
it seems that i need to go and catch element as in tree in object browser (Hierarchal)
var item = pg.Find("idstr", "silverlightControlHost", 10);
//catch object 0
item = item.Object(0);
// then catch the main page:
item = item.SlObject("MainPage", "", 0);
//then catch the button (the button is direct child for main page)
item = item.SlObject("btnName");
item.Click();
However, this is not practical at all!!
i need to access the objects directly, how?
thanks!
Samer
seems that now it works (but i am sure there is better solution)
it seems that i need to go and catch element as in tree in object browser (Hierarchal)
var item = pg.Find("idstr", "silverlightControlHost", 10);
//catch object 0
item = item.Object(0);
// then catch the main page:
item = item.SlObject("MainPage", "", 0);
//then catch the button (the button is direct child for main page)
item = item.SlObject("btnName");
item.Click();
However, this is not practical at all!!
i need to access the objects directly, how?
thanks!
Samer