-
-
-
-
-
-
Object reference not set to an instance of an object.
-
-
-
-
-
Hello,
Is it possible?
I try to use
But take exception:
Is it possible?
I try to use
Actions.InvokeScript<HtmlSpan>(
"$j('#rulesTree span.rf-trn-lbl')"
+
".filter(function() "
+
"{return $j(this).text().trim() == 'er';})"
).Click();
But take exception:
5 Answers, 1 is accepted
0
Accepted
Hello Anton,
I recorded a short video as a demonstration.
Hope this helps.
Kind regards,
Boyan Boev
the Telerik team
Unfortunately you can't do it in this direct way. InvokeScript is invoking functions.
Please implement your code in a function in the html application and call the Click() event in there.
Actions.InvokeScript(
"myFunction()"
);
I recorded a short video as a demonstration.
Hope this helps.
Kind regards,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Test Studio Trainings
0
Anton
Top achievements
Rank 1
answered on 30 Jan 2013, 08:25 AM
Hello Boyan.
Thanks for answer.
I think that it will be great if WebAii can take element by invoked javascript.
Thanks for answer.
I think that it will be great if WebAii can take element by invoked javascript.
0
Hi Anton,
Boyan Boev
the Telerik team
Unfortunately the types that can be returned are strictly typed and can only be basic C# types, bool, int, string, etc.
Should you have any additional questions please do not hesitate to contact us again.
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Test Studio Trainings
0
Anton
Top achievements
Rank 1
answered on 31 Jan 2013, 09:12 AM
As i understand, it is limitation of WebAii? Because this feature is implemented in WebDriver (Selenium 2).
0
Hello Anton,
Boyan Boev
the Telerik team
Yes, this is a limitation of WebAii unfortunately.
I have created a feature request, which you can follow in our public portal.
As thanks for your feature request, I have added Telerik Points to your Telerik.com account.
Thank you for your input, which we rely upon to improve our product.
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Test Studio Trainings