6 Answers, 1 is accepted
0
Hi Vlad,
2. You can store it in a object and call the click event after that:
Let me know if this helps.Kind regards,
Boyan Boev
the Telerik team
Thank you for contacting us.
You have two options:
1. You can call the click event directly with the find expression:
app.ActiveBrowser.Find.ByXPath(
"//span[contains(text(),'foo')]"
).Click();
2. You can store it in a object and call the click event after that:
var element = app.ActiveBrowser.Find.ByXPath(
"//span[contains(text(),'foo')]"
);
elelemnt.Click();
Let me know if 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
Vlad
Top achievements
Rank 1
answered on 12 Feb 2013, 07:27 AM
I can't call the click event. Please, see my screenshot. What should I do?
0
Accepted
Hi Vlad,
Hope this helps.
Greetings,
Boyan Boev
the Telerik team
You should define what kind of control you are looking for (see attached screen shot). It seems you are looking for a span, so try out this code please:
app.ActiveBrowser.Find.ByXPath<HtmlSpan>(
"//span[contains(text(), 'Управление заявками')]"
).Click();
Hope this helps.
Greetings,
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
Vlad
Top achievements
Rank 1
answered on 12 Feb 2013, 10:48 AM
Great! Thanks!
0
jwize
Top achievements
Rank 1
answered on 10 Jul 2015, 02:09 AM
Could you provide a link to the possible Html types?
Thanks!
0
Hi Jaime,
Here is the list of all html controls.
Hope this helps.
Regards,
Boyan Boev
Telerik
Here is the list of all html controls.
Hope this helps.
Regards,
Boyan Boev
Telerik
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Test Studio Trainings