Open a new tab in an existing browser session using Selenium

后端 未结 5 700
一个人的身影
一个人的身影 2020-12-28 21:01

My current code below in C# opens a window then navigates to the specified URL after a button click.

protected void onboardButton_Click(object sender, EventA         


        
5条回答
  •  误落风尘
    2020-12-28 21:05

    IWebDriver driver = new ChromeDriver(); 
    

    Change this to:

    var driver = new ChromeDriver();
    

    I do not know why. May be the IWebDriver miss the method.

提交回复
热议问题