Giter Club home page Giter Club logo

abmash's People

Contributors

alp82 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

abmash's Issues

Getting event generated data

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

xpath and selector predicates are not working

Here is the code i am using

HtmlElement element = browser.query(select("input=[id^='Email']")).findFirst();
        element.type("testing342");

        browser.type("password", "tester4all");
        browser.click("sign in");

when am executing i am getting

java.lang.NullPointerException

and this warning popup message:
image

DOM access using Abmash

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

Issue with closeTo() and text() predicates

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

<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>

Java

    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++;
    }

Result

Total texts around me: 1
1 type your name

Issue

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

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.