Check out example codes for "c# selenium ie switch windows". It will help you in understanding the concepts better.
Code Example 1
protected static Boolean SwitchWindow(string title)
{
var currentWindow = driver.CurrentWindowHandle;
var availableWindows = new List<string>(driver.WindowHandles);
foreach (string w in availableWindows)
{
if (w != currentWindow)
{
driver.SwitchTo().Window(w);
if (driver.Title == title)
return true;
else
{
driver.SwitchTo().Window(currentWindow);
}
}
}
return false;
}
Learn ReactJs, React Native from akashmittal.com