Telerik Forums
Testing Framework Forum
4 answers
141 views
Hello all,

Is there any property in RadTreeViewItem control which will return me whether the element can be expanded or not?

Thank you.

Kind Regards,
Stanislav Hordiyenko
Stanislav
Top achievements
Rank 1
 answered on 12 Nov 2012
3 answers
115 views
Hi,

In my web application there is a standard header section. Since there are more controls the page is big. when i go the bottom of the page some of the controls are hidden under the header section. If i scroll back to top those controls are visible. 

But If i use scrolltoView function, the page is not scrolling to that control, but instead it click at the position where it is hidden.

How can i resolve that issue.
Ivaylo
Telerik team
 answered on 12 Nov 2012
3 answers
192 views
Hello all,

Sometimes, I get the 'Wait for condition has timed out' exception when I try to find all text fields on the form (WPF application): ....Find.AllByType<TextBox>(); Why this happens? Is there any possibility to change the timeout?

Thank you.

Kind Regards,
Stanislav Hordiyenko
Plamen
Telerik team
 answered on 12 Nov 2012
1 answer
204 views
Hello all,

The 'IsChecked' property in CheckBox is of bool? type. What is it for? I would have thought that it is of bool type.

if (checkBox.IsChecked.HasValue && checkBox.IsChecked.Value)
    checkBox.Check(true);

Is it really worth it?

Kind Regards,
Stanislav Hordiyenko
Boyan Boev
Telerik team
 answered on 09 Nov 2012
2 answers
85 views
Hi,

Been encountering a strange error, after I login a user I can't find a link, but If I enter with the user already logged in it finds the same link.

The Id is always the same, and the link is visible.

I had the same error on another test, where it I couldn't find a link, even Find.AllByTagName would not return all the "a" tags on the page.

In that case the the test was making a search, the term was unique and you would be sent to the item page automatically, the link was there  but wasn't found. I got around it by searching by a non unique term, then clicking the results opening the page.

Any ideas?

Thanks in advance,
Hugo
Boyan Boev
Telerik team
 answered on 08 Nov 2012
2 answers
160 views
Hi everyone,

I'm having a problem with an anchor with quotation marks into the InnerText, for example:

<A id=classs36 title="This is my hyperlink " href="http://www.google.com" code? html? my? in? damaged>This is my hyperlink "damaged" in my html code</A>
 
As you can see, there are quotation marks inside the inner text and inside the title attribute, I think these quotation marks are causing the corruption in the anchor.

When I see it on IE the code looks good, I haven;t tried in other browsers because the sit e is only supported for IE.

Do you have any idea of how can i handle this?
Please let me know asap,

Thanks in advance!
Juan
Plamen
Telerik team
 answered on 07 Nov 2012
1 answer
136 views
Hello all,

Is this a correct behaviour when I try to get a text from the GridViewCell control, and there is a button there, the Text property returns nothing?
I would have thought that it returns the text from all child controls.

In my case, there is a button in the GridViewCell, so, it is impossible to find a cell by its text, so, I have to find all cells, than a button with the expected text. It is a little bit overwhelming, isn't it? Or, I am doing something wrong. Please, give me some advice.

Thank you.

Kind Regards,
Stanislav Hordiyenko
Plamen
Telerik team
 answered on 07 Nov 2012
2 answers
127 views
Hello all,

I couldn't find detailed information about XamlFindExpression and available parameters (XamlTag, TextContent etc.) for element identification. I would like to ask to provide me with examples or information how I can use XamlFindExpression in more efficient way? I am currently dealing with old WPF controls, that can't be identified with wrappers, so I want to locate them using XamlFindExpression.

Thank you in advance.

Kind Regards,
Stanislav Hordiyenko
Stanislav
Top achievements
Rank 1
 answered on 07 Nov 2012
3 answers
52 views
Hi,

searching for UI elements in the visual tree using the Find class is very common in UI tests. Calling SilverlightApp.RefreshVisualTrees or FrameworkElement.Refresh is quite expensive and slows the test execution down, but sometime unavoidable (as far as I know) to detect newly created elements, popups etc.

In most cases, it is clear for which dialog/popup etc. I'm looking for. I know where in the visual tree it will appear. But I always have to call Refresh on the (potential) parent (or even SilverlightApp.RefreshVisualTrees), which seems to work through the entire (sub-) tree.

I'd like to limit the search/refresh depth in theses cases. Is this possible somehow? Is it a sensible feature request?
Some other ideas how to speed up the detection of newly created elements?

Regards,
Andreas
Cody
Telerik team
 answered on 06 Nov 2012
1 answer
127 views
Hi,

I've been having a problem clicking on a checkbox, the checkbox starts by being disabled, when you press the edit button it becames enabled, but either creating and element or creating a HtmlInputCheckBox and trying to click or check doesn't work.

Both controls are inside an update panel, and the control always remains with the disabled attribute in either Element/HtmlInputCheckBox.

I have tried the Refresh() and myManager.ActiveBrowser.RefreshDomTree() but without success.

Any ideas?

Thanks in advance,
Hugo
Hugo
Top achievements
Rank 1
 answered on 06 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?