Git Product home page Git Product logo

selocity-extension's People

Contributors

zewa666 avatar

Stargazers

 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

selocity-extension's Issues

Values shall be enclosed with single quotes

Reporting against
Version: 0.6.0
Updated: June 21, 2018

Sample CSS generated
[name="txtUsername"]

Sample XPath generated
/html//input[@id='txtUsername']

It is better if attribute's values in CSS are enclosed with single quotes as in XPaths.
Additional negation character is automatically added when the CSS is copied into IDE (IntelliJ IDEA). This should be handled manually if IDE does negate the double quotations.

Appreciate if CSS values are enclosed with single quotes.

Can't paste xpath when I copy xpath

Hi. All of a sudden, whenever I try to paste the copied xpath, it does not work. It's almost as if it's not going to my clipboard. Any ideas? Thanks!

How does this work with iframes and xpath?

Some feedback on my initial usage. Not sure if I'm using it correctly...

I have a lot of iframes in my client, and using this tool to spy on something in my client, the proposed xpath is valid but only if the iframe is the root, where as the rxpath is correct from the top of the DOM.

There is no obvious indication (to me) that the element spied on is within an iframe. In Selenium I'd have to know the frames in order to switch to them first. Maybe there could be some way to provide all the parent frames to switch to as part of the path (and the user would need to know to remove this from the xpath) or some extra info provided in the "List of selectors" area to indicate this, such as another icon that when clicked gave the parent frame(s) info?

For example, I have this structure for a tree view display in my client. The div[1] element is the first entry line of the tree and contains an image for expand/collapse, the icon for this entry, and the span of text for this entry. Below is the path to the span (text) of the first entry:

DOM/body/div[@id='treediv']/iframe[@id='tree']//body/table//iframe[@id='ifr1']//body//div[@id='TreeBorder']/div[@id='Tree']/div[1]/span

When I select the text, I get the provided xpath as "//div[@id='Tree']/div[1]/span[.='TheTextDisplayed']"

  1. I'd like to know I need to switch to the frames:
    a) iframe[@id='tree']
    b) iframe[@id='ifr1']
  2. I don't think the text for the span should be included, since this is dynamic in this case. Not to big a deal, I can manually remove it.
  3. If I copy the xpath or the rxpath to the test selector area and hit enter, it doesn't find the element if I add extra iframe info to it at the front. For example if I say look for //iframe//iframe//div[@id='Tree']/div[1]/span it won't find the span.

I saw that there was a tool coming for Selenium to allow it to use RxPath... Is that coming from you? I'd be interested in using that. I'm trying to get my Ranorex scripts to run in Edge using Webdriver and since everything is my own custom framework in VisualStudio (not using Ranorex Studio), one of my challenges is converting my strings of desired RxPaths to elements I want to find into Xpath to use with the WebDriver.

Let me know if you need more info.

Thanks,

Aracknid

NOTE: I edited issue 3 above after submitting it.

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.