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.
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?
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.
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,
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.
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.
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?
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.