Skip to content

Commit

Permalink
Add browser window navigation (#252) +semver:feature
Browse files Browse the repository at this point in the history
* Add browser window navigation
- update to Selenium 4.20.0 and NLog 5.3.2

* Fix codesmell issues
  • Loading branch information
mialeska authored May 3, 2024
1 parent 6232ff8 commit 188ffdd
Show file tree
Hide file tree
Showing 20 changed files with 511 additions and 210 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
<None Remove="Resources\JavaScripts\GetDevicePixelRatio.js" />
<None Remove="Resources\JavaScripts\GetElementsFromPoint.js" />
<None Remove="Resources\JavaScripts\GetElementCssSelector.js" />
<None Remove="Resources\JavaScripts\OpenInNewWindow.js" />
<None Remove="Resources\JavaScripts\OpenNewWindow.js" />
<None Remove="Resources\JavaScripts\SetAttribute.js" />
<None Remove="Resources\Localization\be.json" />
<None Remove="Resources\Localization\en.json" />
Expand Down Expand Up @@ -60,7 +62,9 @@
<EmbeddedResource Include="Resources\JavaScripts\GetViewPortCoordinates.js" />
<EmbeddedResource Include="Resources\JavaScripts\IsPageLoaded.js" />
<EmbeddedResource Include="Resources\JavaScripts\MouseHover.js" />
<EmbeddedResource Include="Resources\JavaScripts\OpenInNewWindow.js" />
<EmbeddedResource Include="Resources\JavaScripts\OpenInNewTab.js" />
<EmbeddedResource Include="Resources\JavaScripts\OpenNewWindow.js" />
<EmbeddedResource Include="Resources\JavaScripts\ScrollBy.js" />
<EmbeddedResource Include="Resources\JavaScripts\ScrollToBottom.js" />
<EmbeddedResource Include="Resources\JavaScripts\ScrollToElement.js" />
Expand All @@ -82,7 +86,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Aquality.Selenium.Core" Version="3.0.7" />
<PackageReference Include="Aquality.Selenium.Core" Version="3.0.8" />
<PackageReference Include="OpenCvSharp4.runtime.osx_arm64" Version="4.8.1-rc" />
<PackageReference Include="WebDriverManager" Version="2.17.2" />
<PackageReference Include="OpenCvSharp4" Version="4.9.0.20240103" />
Expand Down
89 changes: 89 additions & 0 deletions Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion Aquality.Selenium/src/Aquality.Selenium/Browsers/Browser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,16 @@ private INavigation Navigate()
/// <returns>Instance of IBrowserTabNavigation.</returns>
public IBrowserTabNavigation Tabs()
{
return new BrowserTabNavigation(Driver, Logger);
return new BrowserWindowNavigation(Driver, Logger, WindowType.Tab);
}

/// <summary>
/// Provides interface to manage of browser windows.
/// </summary>
/// <returns>Instance of IBrowserWindowNavigation.</returns>
public IBrowserWindowNavigation Windows()
{
return new BrowserWindowNavigation(Driver, Logger, WindowType.Window);
}

/// <summary>
Expand Down

This file was deleted.

Loading

0 comments on commit 188ffdd

Please sign in to comment.