Giter Club home page Giter Club logo

semantic-locators's People

Contributors

alexlloyd0 avatar concavelenz avatar dependabot[bot] avatar engelsdamien avatar jordan-mace avatar lauraharker avatar olegnitz avatar rchen152 avatar shicks avatar thompsonja avatar yilei 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  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  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

semantic-locators's Issues

Support locator combinators

Consider adding combinators to allow for locators to find the {cell} {button 'Mark resolved'} which is a sibling of a {cell 'Buy milk'}.

This would add significant complexity to the language and implementation. It may never be a good idea to implement, but this issue can be used to track any use cases.

Error [ERR_INVALID_PACKAGE_TARGET]: Invalid "exports" main target "dist/src/semantic_locators.js"

Describe the bug
Invalid exports path in package.json, cause require module failed.

According to this documentation , "All paths defined in the "exports" must be relative file URLs starting with ./.".
However we got

  "exports": {
    ".": {"require": "dist/src/semantic_locators.js"},
    "./gen":{"require": "dist/src/gen/index.js"}
  },

image

@
To Reproduce
Steps to reproduce the behavior:
When ever require semantic locator into a js file, and run it directly in node (without any other module resolver , like webpack , or even jest)
this log come along:

Error [ERR_INVALID_PACKAGE_TARGET]: Invalid "exports" main target "dist/src/semantic_locators.js" defined in the package config /xxx/node_modules/semantic-locator/package.json;
 targets must start with "./"

Expected behavior
can be required successfully.

Screenshots
image

Environment (please complete the following information):

  • OS: [e.g. Windows]
  • Browser and version: [e.g. Chrome v87]
  • Semantic Locators environment [e.g. JavaScript, Java WebDriver, All]

Additional context
Add any other context about the problem here.

Implement dotnet integration

Describe the feature
An integration of semantic-locators in dotnet, following the same logic as the java integration.

Use case
Selenium provides dotnet bindings

Set up testing.

Are there supposed to be testing toolings for this project?

Support iframe

Describe the feature
Please support semantic-locators works in iframe.
accname used to use node instanceof HTMLElement, that will not work on elements that belong to other windows/frames.
It seems that this problem got fixed, but never publish to npm?
google/accname@466d7e9

Use case
I'm trying to add a custom command to cypress, and cypress runs everything inside an iframe

Awesome library. Thx. @AlexLloyd0

Support for Selenium 4 in Python

Describe the feature
Allow for using semantic locators with Selenium 4 in a Python environment.

Use case
I want to use the element.accessbile_name feature from Selenium 4 alongside this library.

Steps to reproduce
Create a requirements.txt

selenium==4
semantic-locators==2.1.0

Call pip3 install -r requirements.txt

Causes the following error:

ERROR: Cannot install selenium==4 and semantic-locators==2.1.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested selenium==4
    semantic-locators 2.1.0 depends on selenium<4.0.0 and >=3.141.0

Add dotnet to Actions

Currently the GitHub actions does not perform a build of dotnet, this removes visibility over breaking changes.

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.