You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: this works fine on Chrome, but fails on Firefox.
Repro:
using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Firefox;
using TestAutomationEssentials.Common.ExecutionContext;
using TestAutomationEssentials.MSTest;
using TestAutomationEssentials.Selenium;
namespace IgudTest
{
[TestClass]
public class UnitTest1 : TestBase
{
[TestMethod]
public void TestMethod1()
{
var driver = new FirefoxDriver();
AddCleanupAction(() => driver.Quit());
var browser = new Browser("Main Window", driver, TestExecutionScopesManager);
var mainWindow = browser.MainWindow;
driver.Url = @"file:///C:/temp/FirstWindow.html";
var link = browser.WaitForElement(By.Id("myLink"), "Link");
var newWindow = browser.OpenWindow(() => link.Click(), "New window");
Console.WriteLine(newWindow.Title);
Assert.AreEqual(mainWindow.Title, driver.Title);
}
}
}
The text was updated successfully, but these errors were encountered:
Note: this works fine on Chrome, but fails on Firefox.
Repro:
The text was updated successfully, but these errors were encountered: