Live data from Hacker News

Show HN: Kasaya – A scripting language and runtime for browser automation

github.com

1–10 of 109 posts

Re: Show HN: Kasaya – A scripting language and runtime for browser automation

#3

Interesting concept, sounds promising. Have you checked taiko ? https://github.com/getgauge/taiko

Neat! When we were looking around, we didn't find this one, thanks.

Can it also do stuff like this:

  read ${sender} from row "Test email" column "Sender"
By the way, that works using cartesian lookup.

Re: Show HN: Kasaya – A scripting language and runtime for browser automation

#5

I am confused by the use of "WYSIWYG". It seems to be more a control console/REPL with Natural Language syntax. Edit: A killer feature would be autocomplete for things found on the page.

You're right -- we just put it in double quotes to convey the meaning. It's not entirely accurate. The idea is that you write the script based on what you see, and now what in the HTML. I guess we could do better with the description.

Re: Show HN: Kasaya – A scripting language and runtime for browser automation

#6
Who is this for? It requires the JDK and Node.js to be installed, telling me that this is targeted to developers. If I'm a developer, I'm OK to use a browser automation framework that requires a bit of code (at least one that has conditionals and loops...).

Re: Show HN: Kasaya – A scripting language and runtime for browser automation

#7
We can do this with Canopy in F# (repl/interactive style too!):

    //go to url
    url "http://lefthandedgoat.github.io/canopy/testpages/"

    //assert that the element with an id of 'welcome' has
    //the text 'Welcome'
    "#welcome" == "Welcome"

    //assert that the element with an id of 'firstName' has the value 'John'
    "#firstName" == "John"

    //change the value of element with
    //an id of 'firstName' to 'Something Else'
    "#firstName" 
https://lefthandedgoat.github.io/canopy/

Re: Show HN: Kasaya – A scripting language and runtime for browser automation

#9
Interesting but I'm not sure about the syntax. If I'm writing code, why do I want to write code in a language that is overly verbose and not that precise? Just make it code.

And if it is not meant for programmers, then make it clickable+drag-and-drop. Having a compromise in this case, makes it not a solution for anyone.

Re: Show HN: Kasaya – A scripting language and runtime for browser automation

#10
post #6

Who is this for? It requires the JDK and Node.js to be installed, telling me that this is targeted to developers. If I'm a developer, I'm OK to use a browser automation framework that requires a bit of code (at least one that has conditionals and loops...).

I guess it'd just need to be packaged up nicely.
Post reply on HN