ranorex / selocity-extension Goto Github PK
View Code? Open in Web Editor NEWAuto-generate robust and reliable CSS, XPath and RanoreXPath selectors in your Chrome DevTools.
Auto-generate robust and reliable CSS, XPath and RanoreXPath selectors in your Chrome DevTools.
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.
Following XPath is generated by Seleocity automatically for an input field in a login page.
/html//input[@id='txtUsername']
It would better if /html prefix is not included into the XPath to make it shorter.
Just installed Webtestit and got the Chrome Selocity extension, but it will not connect to Webtestit.
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!
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']"
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.