Skip to content

Commit 2bd4795

Browse files
author
Jake Ginnivan
committed
Made test tolerant to startup page
1 parent 7f74b47 commit 2bd4795

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/TestStack.White.UITests/Scenarios/Win32Tests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Diagnostics;
2+
using System.Linq;
23
using TestStack.White.Factory;
34
using TestStack.White.UIItems;
45
using TestStack.White.UIItems.Finders;
@@ -36,7 +37,7 @@ public void NotepadTests()
3637
public void InternetExplorerTests()
3738
{
3839
using (var app = Application.Launch(IExplorer))
39-
using (var window = app.GetWindow("New tab - Internet Explorer"))
40+
using (var window = app.GetWindows().Single())
4041
{
4142
var button = window.Get<Button>(SearchCriteria.ByAutomationId("Item 3"));
4243
//check if we can get a win32 tooltip

0 commit comments

Comments
 (0)