# How to use South method of FlaUI.Core.Tools.ExtensionMethods class

Best FlaUI code snippet using FlaUI.Core.Tools.ExtensionMethods.South

ExtensionMethods.cs

Source:ExtensionMethods.cs

```...65 public static Point North(this Rectangle self, int by = 0) => new Point(self.Center().X, self.Top + by);6667 public static Point East(this Rectangle self, int by = 0) => new Point(self.Right + by, self.Center().Y);6869 public static Point South(this Rectangle self, int by = 0) => new Point(self.Center().X, self.Bottom + by);7071 public static Point West(this Rectangle self, int by = 0) => new Point(self.Left + by, self.Center().Y);7273 public static Point ImmediateExteriorNorth(this Rectangle self) => self.North(-1);7475 public static Point ImmediateInteriorNorth(this Rectangle self) => self.North(1);7677 public static Point ImmediateExteriorEast(this Rectangle self) => self.East(1);7879 public static Point ImmediateInteriorEast(this Rectangle self) => self.East(-1);8081 public static Point ImmediateExteriorSouth(this Rectangle self) => self.South(1);8283 public static Point ImmediateInteriorSouth(this Rectangle self) => self.South(-1);8485 public static Point ImmediateExteriorWest(this Rectangle self) => self.West(-1);8687 public static Point ImmediateInteriorWest(this Rectangle self) => self.West(1);8889 /// <summary>90 /// Makes the rectangles dimensions a multiple of 2.91 /// </summary>92 public static Rectangle Even(this Rectangle self)93 {94 if (self.Width % 2 == 1)95 {96 --self.Width;97 } ...```

South

Using AI Code Generation

`1var app = FlaUI.Core.Application.Launch(@"C:\Windows\System32\calc.exe");2var window = app.GetMainWindow(FlaUI.Core.Conditions.ConditionFactory.ByAutomationId("CalculatorFrame"));3var button = window.FindFirstDescendant(FlaUI.Core.Conditions.ConditionFactory.ByAutomationId("num5Button"));4button.Click();5var result = window.FindFirstDescendant(FlaUI.Core.Conditions.ConditionFactory.ByAutomationId("CalculatorResults"));6var resultText = result.AsLabel().Text;7Console.WriteLine(resultText);8var app = FlaUI.Core.Application.Launch(@"C:\Windows\System32\calc.exe");9var window = app.GetMainWindow(FlaUI.Core.Conditions.ConditionFactory.ByAutomationId("CalculatorFrame"));10var button = window.FindFirstDescendant(FlaUI.Core.Conditions.ConditionFactory.ByAutomationId("num5Button"));11button.Click();12var result = window.FindFirstDescendant(FlaUI.Core.Conditions.ConditionFactory.ByAutomationId("CalculatorResults"));13var resultText = result.AsLabel().Text;14Console.WriteLine(resultText);15var app = FlaUI.Core.Application.Launch(@"C:\Windows\System32\calc.exe");16var window = app.GetMainWindow(FlaUI.Core.Conditions.ConditionFactory.ByAutomationId("CalculatorFrame"));17var button = window.FindFirstDescendant(FlaUI.Core.Conditions.ConditionFactory.ByAutomationId("num5Button"));18button.Click();19var result = window.FindFirstDescendant(FlaUI.Core.Conditions.ConditionFactory.ByAutomationId("CalculatorResults"));20var resultText = result.AsLabel().Text;21Console.WriteLine(resultText);22var app = FlaUI.Core.Application.Launch(@"C:\Windows\System32\calc.exe");23var window = app.GetMainWindow(FlaUI.Core.Conditions.ConditionFactory.ByAutomationId("CalculatorFrame"));24var button = window.FindFirstDescendant(FlaUI.Core.Conditions.ConditionFactory.ByAutomationId("num5Button"));25button.Click();26var result = window.FindFirstDescendant(FlaUI.Core.Conditions`

South

Using AI Code Generation

`1using System;2using System.Windows;3using System.Windows.Controls;4using System.Windows.Data;5using System.Windows.Documents;6using System.Windows.Input;7using System.Windows.Media;8using System.Windows.Media.Imaging;9using System.Windows.Shapes;10using FlaUI.Core.AutomationElements;11using FlaUI.Core.Tools;12{13 {14 public MainWindow()15 {16 InitializeComponent();17 }18 private void btnClick_Click(object sender, RoutedEventArgs e)19 {20 AutomationElement desktop = AutomationElement.Desktop;21 Point p = desktop.Bounds.South();22 Mouse.MoveTo(p);23 Mouse.Click(MouseButton.Left);24 }25 }26}27NorthWest()28North()29NorthEast()30West()31Center()32East()33SouthWest()34South()35SouthEast()36FlaUI.Core.Tools.ExtensionMethods Class (FlaUI.Core)37FlaUI.Core.Tools.ExtensionMethods Methods (FlaUI.Core)38FlaUI.Core.Tools.ExtensionMethods Properties (FlaUI.Core)39FlaUI.Core.Tools.ExtensionMethods Events (FlaUI.Core)40FlaUI.Core.Tools.ExtensionMethods Constructor (FlaUI.Core)41FlaUI.Core.Tools.ExtensionMethods Members (FlaUI.Core)42FlaUI.Core.Tools.ExtensionMethods Examples (FlaUI.Core)43FlaUI.Core.Tools.ExtensionMethods Remarks (FlaUI.Core)44FlaUI.Core.Tools.ExtensionMethods Class (FlaUI.Core)45FlaUI.Core.Tools.ExtensionMethods Methods (FlaUI.Core)46FlaUI.Core.Tools.ExtensionMethods Properties (FlaUI.Core)47FlaUI.Core.Tools.ExtensionMethods Events (FlaUI.Core)`

South

Using AI Code Generation

`1using System;2using System.Collections.Generic;3using System.Linq;4using System.Text;5using System.Threading.Tasks;6using FlaUI.Core.AutomationElements;7using FlaUI.Core.AutomationElements.Infrastructure;8using FlaUI.Core.Definitions;9using FlaUI.Core.Tools;10using FlaUI.UIA2;11using UIA = interop.UIAutomationCore;12{13 {14 static void Main(string[] args)15 {16 System.Diagnostics.Process.Start("notepad.exe");17 var automation = new UIA2Automation();18 var condition = automation.ConditionFactory.ByProcessId(System.Diagnostics.Process.GetProcessesByName("notepad").First().Id);19 var notepad = automation.GetDesktop().FindFirstDescendant(condition);20 var southPane = notepad.South();21 Console.WriteLine(southPane.Name);22 Console.ReadLine();23 }24 }25}26using System;27using System.Collections.Generic;28using System.Linq;29using System.Text;30using System.Threading.Tasks;31using FlaUI.Core.AutomationElements;32using FlaUI.Core.AutomationElements.Infrastructure;33using FlaUI.Core.Definitions;34using FlaUI.Core.Tools;35using FlaUI.UIA2;36using UIA = interop.UIAutomationCore;37{38 {39 static void Main(string[] args)40 {41 System.Diagnostics.Process.Start("notepad.exe");42 var automation = new UIA2Automation();`

## Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

## LambdaTest Learning Hubs:

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

## Run FlaUI automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

## Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!