Working with popup windows using Coypu for Selenium C#
In the last post we discussed how to write a super simple code with Coypu for Selenium with C#, in this post we will discuss how to work with popup windows using Coypu for Selenium with C#.
Here are some of the difference between Selenium from coypu
Here is the complete video of the above discussion
Here is the complete code from the above video
public void Test_PopupWindow()
var sessionConfiguration = new SessionConfiguration()
Browser = Browser.Firefox,
AppHost = "executeautomation.com",
var browser = new BrowserSession(sessionConfiguration);
//Switch to window
var popup = browser.FindWindow("Popup Window", Options.Substring);
//Close the window
Thanks for reading the post and watching the video!!!
Please leave your comments and let me know if there is anything I should update in this post.
2 Replies to “Working with popup windows using Coypu for Selenium C#”
Can you confirm which firefox version are you using. I am using 44.0.1 and test fails with a message:System.componentmodel.win32Exception. System cannot find the file specified. I have also set the path to the firefox installer but no luck.
Mine is very latest and its working !!!