szein
13 years agoOccasional Contributor
Cannot access onscreen objects in Silverlight 4
hello,
I downloaded TestComplate 8.5 tial edition, and currently testing how to automate silverlight tests.
when i record the test, it does not run again successfully. it breaks when it tries to find onscreen objects!
i donno if i am missing something but here is what i did:
I downloaded TestComplate 8.5 tial edition, and currently testing how to automate silverlight tests.
when i record the test, it does not run again successfully. it breaks when it tries to find onscreen objects!
i donno if i am missing something but here is what i did:
- i made sure that the IE is using latest silverlight version
- i made the xap file open using the tcagPacher utility, and copies it back on web server
- i clear the cache before start testing
i even tried to write my own test script:
//suppose that pg is the page that has silverlight object
// the whole silverlight app under test is a simple page with 2 buttons!
var item = pg.Find("idstr", "silverlightControlHost", 10);
var obj = item.SlObject("btnName"); // <==it breaks here, cannot find object!
Help Please!
thanks,
Samer