GetEval is failing on jsForContentScriptMethod

48 views
Skip to first unread message

MArk B.

unread,
Apr 13, 2012, 7:34:11 PM4/13/12
to Silverlight Selenium
An interesting thing is going on. I'm running the ClickClicks test in
the ButtonFixtureTest and getting an error "Object doesn't support
this property or method" when it gets to the Call method in the
Silvernium class.

As I'm much better at working in this environment I'm able to add just
a touch more than I could last time I tried this. I noticed in the
Selenium browser that it was getting a call to GetEval that was
working. That means it's not directly in GetEval. At least I think it
isn't. So, I did this:

public string Call(string functionName, params string[]
parameters)
{
string myTemp =
selenium.GetEval( "window.document['silverlight'].isLoaded;");

return
selenium.GetEval(jsForContentScriptMethod(functionName, parameters));
}
I put another GetEval in the Call method. It's working just fine.
myTemp is = to 'true'. It's the second one that's not.

It actually might be something wrong with the way my computer is set
up. I'm going to head home now and see if it's possible that the same
code will work on a less encumbered machine.

I'll let you know.

MArk B.

MArk B.

unread,
Apr 13, 2012, 7:38:17 PM4/13/12
to Silverlight Selenium
This is the string it's choking on:
"window.document['silverlight'].content.SilverlightFixture.FindControl('clearTextBox');"

Anil Dhiman

unread,
Feb 18, 2014, 5:27:39 AM2/18/14
to silverligh...@googlegroups.com
Hi Mark,

Have you found answer to this ? I have been debugging it lately and found that even 
window.document['silverlight'].content
results as 'null'

Thanks,
Anil
Reply all
Reply to author
Forward
0 new messages