alp82 / abmash Goto Github PK
View Code? Open in Web Editor NEWWeb application automation based on the visible rendered output with Java.
License: GNU General Public License v3.0
Web application automation based on the visible rendered output with Java.
License: GNU General Public License v3.0
When I ran the basic code you provided here on Github, I get this error: Specified firefox binary location does not exist or is not a real file.
I was wondering if there is a way to use chrome instead of firefox, thanks.
I tried to get the texts near to a HtmlElement. It captures some but not all. I'm not sure whether it is a bug or maybe I'm not using the predicates properly. My html and java code are given below.
<html>
<body>
<form>
<label>
<span style="font-size:large">
Name<span style="font-size:small""> type your name</span>
</span>
<input type="text" value="" name="name" >
</label>
</form>
</body>
</html>
HtmlElement me = browser.query(typable()).find().first();
HtmlElements neighbors = browser.query(text(), closeTo(me))
.find();
System.out.println("Total texts around me: "+ neighbors.size());
int i=1;
for(HtmlElement e:neighbors){
System.out.println(i+" "+e.getText());
i++;
}
Total texts around me: 1
1 type your name
If you open the html code in browser, you see both the texts near to the input field. However, the java code finds only one text node near to the input field. Specification says "closeTo(HtmlElement element)" finds elements visually close to the given HtmlElement, with a maximum distance of 300 pixels. The two texts are clearly within 300 pixels. Thus, is there any bug in this method ?
Thanks
I watched your interesting video in YouTube. At 111s of that video (http://www.youtube.com/watch?v=Il0191C8fg8&feature=player_detailpage#t=111s) your program types "New York" first then clicks the JFK next. Instead of doing that way, I want to get all the possible values generated by the click event first and based on some conditions I want to click one of them. Is it possible in Abmash ?
Another question( related to this) : Sometimes filling one field can change the contents of other fields. Is it possible to get the events associated with an element and the fields that are affectedby an event ?
Thanks
Hi All,
I understand that Abmash is built for visual attributes and visible text. I liked this but I also want to get access to the full DOM tree so that I can utilize both the visual and the DOM level features. Is there a way to get the DOM tree of the document from Abmash? I tried to use getParent () / getSiblings method of the HtmlElement class but it doesn't work ...
Thanks
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.