@ -92,7 +92,7 @@ namespace Avalonia.IntegrationTests.Appium
{
{
try
try
{
{
_ session . FindElementByAccessibilityId ( "WindowState" ) . SendClick ( ) ;
_ session . FindElementByAccessibilityId ( "Current WindowState" ) . SendClick ( ) ;
_ session . FindElementByAccessibilityId ( "WindowStateNormal" ) . SendClick ( ) ;
_ session . FindElementByAccessibilityId ( "WindowStateNormal" ) . SendClick ( ) ;
// Wait for animations to run.
// Wait for animations to run.
@ -112,7 +112,7 @@ namespace Avalonia.IntegrationTests.Appium
{
{
using ( OpenWindow ( new Size ( 4 0 0 , 4 0 0 ) , ShowWindowMode . NonOwned , WindowStartupLocation . Manual ) )
using ( OpenWindow ( new Size ( 4 0 0 , 4 0 0 ) , ShowWindowMode . NonOwned , WindowStartupLocation . Manual ) )
{
{
var windowState = _ session . FindElementByAccessibilityId ( "WindowState" ) ;
var windowState = _ session . FindElementByAccessibilityId ( "Current WindowState" ) ;
Assert . Equal ( "Normal" , windowState . GetComboBoxValue ( ) ) ;
Assert . Equal ( "Normal" , windowState . GetComboBoxValue ( ) ) ;
@ -151,7 +151,7 @@ namespace Avalonia.IntegrationTests.Appium
public void ShowMode ( ShowWindowMode mode )
public void ShowMode ( ShowWindowMode mode )
{
{
using var window = OpenWindow ( null , mode , WindowStartupLocation . Manual ) ;
using var window = OpenWindow ( null , mode , WindowStartupLocation . Manual ) ;
var windowState = _ session . FindElementByAccessibilityId ( "WindowState" ) ;
var windowState = _ session . FindElementByAccessibilityId ( "Current WindowState" ) ;
var original = GetWindowInfo ( ) ;
var original = GetWindowInfo ( ) ;
Assert . Equal ( "Normal" , windowState . GetComboBoxValue ( ) ) ;
Assert . Equal ( "Normal" , windowState . GetComboBoxValue ( ) ) ;
@ -354,7 +354,7 @@ namespace Avalonia.IntegrationTests.Appium
{
{
PixelRect ? ReadOwnerRect ( )
PixelRect ? ReadOwnerRect ( )
{
{
var text = _ session . FindElementByAccessibilityId ( "OwnerRect" ) . Text ;
var text = _ session . FindElementByAccessibilityId ( "Current OwnerRect" ) . Text ;
return ! string . IsNullOrWhiteSpace ( text ) ? PixelRect . Parse ( text ) : null ;
return ! string . IsNullOrWhiteSpace ( text ) ? PixelRect . Parse ( text ) : null ;
}
}
@ -365,13 +365,13 @@ namespace Avalonia.IntegrationTests.Appium
try
try
{
{
return new (
return new (
Size . Parse ( _ session . FindElementByAccessibilityId ( "ClientSize" ) . Text ) ,
Size . Parse ( _ session . FindElementByAccessibilityId ( "CurrentC lientSize" ) . Text ) ,
Size . Parse ( _ session . FindElementByAccessibilityId ( "FrameSize" ) . Text ) ,
Size . Parse ( _ session . FindElementByAccessibilityId ( "Current FrameSize" ) . Text ) ,
PixelPoint . Parse ( _ session . FindElementByAccessibilityId ( "Position" ) . Text ) ,
PixelPoint . Parse ( _ session . FindElementByAccessibilityId ( "Current Position" ) . Text ) ,
ReadOwnerRect ( ) ,
ReadOwnerRect ( ) ,
PixelRect . Parse ( _ session . FindElementByAccessibilityId ( "ScreenRect" ) . Text ) ,
PixelRect . Parse ( _ session . FindElementByAccessibilityId ( "Current ScreenRect" ) . Text ) ,
double . Parse ( _ session . FindElementByAccessibilityId ( "Scaling" ) . Text ) ,
double . Parse ( _ session . FindElementByAccessibilityId ( "Current Scaling" ) . Text ) ,
Enum . Parse < WindowState > ( _ session . FindElementByAccessibilityId ( "WindowState" ) . Text ) ) ;
Enum . Parse < WindowState > ( _ session . FindElementByAccessibilityId ( "Current WindowState" ) . Text ) ) ;
}
}
catch ( OpenQA . Selenium . NoSuchElementException ) when ( retry + + < 3 )
catch ( OpenQA . Selenium . NoSuchElementException ) when ( retry + + < 3 )
{
{