Coder Social home page Coder Social logo

dreamescaper / dotnetseleniumextras.core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dotnetseleniumtools/dotnetseleniumextras

25.0 25.0 2.0 130 KB

Extra utilities for use with the Selenium .NET language bindings

License: Apache License 2.0

C# 87.83% HTML 12.17%

dotnetseleniumextras.core's Introduction

dotnetseleniumextras.core's People

Contributors

dreamescaper avatar jimevans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

rabosa616 eharm

dotnetseleniumextras.core's Issues

Request to update Selenium.WebDriver to version 4.14.1

Hi there, a CVE was recently raised with regards to older versions of the Selenium.WebDriver package. The recommendation is to push to a version greater than 4.14.0. As the latest version is now 4.14.1 it makes sense to upgrade to that.

Any chance you'll be able to do this for DotNetSeleniumExtras.PageObjects.Core and DotNetSeleniumExtras.WaitHelpers? As you seem to be the most recently active individual maintaining this suite of packages.

<testsuite failures="1" errors="0" time="0" id="4"
    package="DotNetSeleniumExtras.PageObjects.Core:4.3.0" skipped="0" tests="1"
    timestamp="2023-10-23T12:51:19.782">
    <testcase classname="CVE-2023-5590"
        name="pkg:nuget/[email protected]">
        <failure
            message="cvssV3: HIGH, score: 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)" />
        <system-out>NULL Pointer Dereference in GitHub repository seleniumhq/selenium prior to
            4.14.0.</system-out>
    </testcase>
</testsuite>
<testsuite failures="1" errors="0" time="0" id="5"
    package="DotNetSeleniumExtras.WaitHelpers:3.11.0" skipped="0" tests="1"
    timestamp="2023-10-23T12:51:19.782">
    <testcase classname="CVE-2023-5590" name="pkg:nuget/[email protected]">
        <failure
            message="cvssV3: HIGH, score: 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)" />
        <system-out>NULL Pointer Dereference in GitHub repository seleniumhq/selenium prior to
            4.14.0.</system-out>
    </testcase>
</testsuite>

Thanks in Advance!

use of multiple FindsBy annotations not working

I have 2 stages where the locators for one Webelement can differ. (change during development).
So i need to declare 2 different Locators for the same Element.

	`[FindsBy(How = How.Id, Using = "id1") ]
	[FindsBy(How = How.Id, Using = "id-1") ]
	private IWebElement txtBox;
	public GoToKeywords(WebDriverClient driver)
	{
	
		PageFactory.InitElements(driver.GetDriver(),this);
	}`

When the test runs where the first FindsBy (id1) condition is met -> everything is fine
When the test runs on a stage where the second FindsBy (id-1) condition is met -> i get a nullreference exception - it looks like that the second FindsBy is ignored.

[question] The Page factory function that existed in Appium dotnet-Client has been removed. Could we add PageFactory functionality as an extension?

The Page factory function that existed in Appium dotnet-Client has been removed.

appium/dotnet-client@6294052#diff-a7defabfd952cf3ef940d64c43fbcf3bcf3bcf3bcf3bcf3bcf3bcf3bcf 6BCE6B6

Removed appium dotnet-client pagefacotory property from appium.

FindsByUIAutomatorsAttribute
FindsByAndroidUIAutomatorAttribute

Could we add PageFactory functionality as an extension?

Able to get IWebElement, but I am not able to get IWebElements

Currently I am using below code to get a single web element which is equivalent to driver.FindElement(), is there a way to get a array of web elements equivalent to driver.FindElements()

[FindsBy(How=How.Id,Using = "twotabsearchtextbox")]
private IWebElement _searchInputBox;

call the PageFactory.InitElements(Driver, this), throw exception

Method 'GetDomAttribute' in type 'SeleniumExtras.PageObjects.WebElementProxy' from assembly 'SeleniumExtras.PageObjects, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

version: 4.0.0-beta1
OS: windows 10
SDK: net core 3.1

PageFactory's Can I set the Timeout setting?

Is that possible to combine PageFactory approach with a custom searching process such as 3 tries for searching with an ExpectedCondition being set and so on?

PageFactory.initElements(new DefaultPageObjectMemberDecorator(driver, 15), this);

or

PageFactory.initElements(new AppiumFieldDecorator(driver, Duration.ofSeconds(30)), this);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.