-
-
Notifications
You must be signed in to change notification settings - Fork 355
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added getting element rect, getting window rect, setting window rect, getting title.
- Loading branch information
1 parent
7dbe9ae
commit b1f61c1
Showing
12 changed files
with
275 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FlaUI.WebDriver.UITests.TestUtil; | ||
using NUnit.Framework; | ||
using OpenQA.Selenium.Remote; | ||
|
||
namespace FlaUI.WebDriver.UITests | ||
{ | ||
[TestFixture] | ||
public class SessionTests | ||
{ | ||
[Test] | ||
public void GetTitle_Default_IsSupported() | ||
{ | ||
var driverOptions = FlaUIDriverOptions.TestApp(); | ||
using var driver = new RemoteWebDriver(WebDriverFixture.WebDriverUrl, driverOptions); | ||
|
||
var title = driver.Title; | ||
|
||
Assert.That(title, Is.EqualTo("FlaUI WPF Test App")); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace FlaUI.WebDriver.Models | ||
{ | ||
public class ElementRect | ||
{ | ||
public int X { get; set; } | ||
public int Y { get; set; } | ||
public int Width { get; set; } | ||
public int Height { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace FlaUI.WebDriver.Models | ||
{ | ||
public class WindowRect | ||
{ | ||
public int? X { get; set; } | ||
public int? Y { get; set; } | ||
public int? Width { get; set; } | ||
public int? Height { get; set; } | ||
} | ||
} |
Oops, something went wrong.