Search code examples
c#seleniumui-testingwinappdriver

WinAppDriver for desktop and webapp


I’ve used Selenium for our gui-test and it works. But we have some webapps that when user click on a link, a Word file opens that contains some data and has a small webapp (embedded) in the Word document. That webapp communicates with Word. Is it possible to combine my Selenium tests with WinAppDriver in the same test?


Solution

  • In order to click the second popup which you mentioned later in comments, try using a desktop session. Find the popup window first and then the child button and call click method as shown below.

    sessionDesktop.FindElementByName("Alert").FindElementByName("OK").Click();