I am testing a .net web app with a data grid. It puts the new record inputs in the last row of the rendered table.
The table is wrapped within a DIV, when the content overflows, a vertical scrollbar is used to navigate the table.
How do I scroll to the last row? The scroll action is not recordable and the available scroll actions only scroll relative to the page top/bottom/middle.
We have built a Test Studio test framework using xUnit and C#. We're able to execute the tests via Visual Studio Test Explorer, but now we would like to implement an ADO Azure pipeline to execute the tests via a nightly schedule. I have reviewed the Test Studio Tests in Azure Devops article, but it seems like it's mainly focused when using the Test Studio application for the automation.
BTW, this is for a WFP desktop application.
Thank you.
Hi Team,
Iam automating WPF application. Is there a way to identify and verify colors.
Thanks,
Sreelakshmi
Hallo everyone,
I have question how could DesktopGrid be used?
The work is on an DesktopTest for a DesktopApplication, which contains Table-Elements on which I want to get access for coded desktop tests.
In DOM-Tree the table is shown as an Element with "controlTypeName=Table".
To find the Desktop-Table-Element I am using:
DesktopGrid table = find.ByExpression(expression).As<DesktopGird();
When executing the code the Inner Exception occurs:
ArtOfTest.WebAii.DesktopAutomation.InvalidElementException: Element must be of type 'DataGrid'.
For table handling in coded Desktop Test is the DesktopGrid the right solution and how and for what could DesktopGrid be used?
Hi,
I'm using Telerik Test Framework to test a WPF app on Windows. How do I see the contents of the RadVirtualGrid class? The way I'm accessing it is as follows:
using ArtOfTest.WebAii.Silverlight;
using Telerik.WebAii.Controls.Xaml.Wpf;
...
var virtualGrid = knownFrameworkElement.Find.ByType<RadVirtualGrid>();
The virtualGrid object is properly returned. However, no useful methods/properties are defined in the RadVirtualGrid class. Snoop cannot see the contents, either.
Does anyone know how to get the contents of RadVirtualGrid? I had no problem grabbing the RadGridView class. But we recently changed to the virtual grid.
Any suggestions would be appreciated.
Tetsu
We have a WPF Application that when I use a coded step rather than a Test Step, I get an error message that the Element cannot be found. If the coded step is after a Test Step that does interact with the same page, the Element is found with no issues.
Here is the Element example:
XamlTag=button,AutomationId=Vendor Search
If I set a breakpoint and open the DOM Explorer, and then close it, the Element is found as expected. Just stopping at the breakpoint is not enough, so it isn't an issue with waiting for the Element to be populated.
This issue also happens when we export our test to be a C# coded test.
I have attached a video showing the behavior working and then breaking. We are unable to share the program with you since it is an internal application.
Coded Step:
[CodedStep(@"Click VendorSearchButton")]
public void Purchasing_CodedStep8()
{
System.Threading.Thread.Sleep(1000);
Applications.IdsLocalRunnerexe.Purchasing__Webstaurant_Store_Inc__Inventory_Distribution_System.VendorSearchButton.Wait.ForExists();
// Click VendorSearchButton
Applications.IdsLocalRunnerexe.Purchasing__Webstaurant_Store_Inc__Inventory_Distribution_System.VendorSearchButton.User.Click();
}
Here is the code within the application setting the AutomationId:
<Button x:Name="NavigateButton" Margin="0,1,0,0" Command="{Binding CommandOnClick}" IsEnabled="{Binding Enabled}"
Height="43" VerticalAlignment="Center" HorizontalAlignment="Stretch"
Style="{StaticResource MenuItemButtonStyle}"
AutomationProperties.Name="{Binding DisplayText}"
AutomationProperties.AutomationId="{Binding DisplayText}"
Visibility="{Binding IsEditable, Converter={StaticResource BooleanInverseVisibilityConverter}}">
<TextBlock Foreground="{StaticResource MenuItemTextBrush}" FontSize="14" Padding="4"
Visibility="{Binding IsEditable, Converter={StaticResource BooleanInverseVisibilityConverter}}">
<Run Text="{Binding Index, Mode=OneWay}" FontWeight="Thin" /><Run Text="." FontWeight="Thin" />
<Run Text="{Binding DisplayText, Mode=OneWay}" FontWeight="SemiBold" />
</TextBlock>
</Button>