Show HN: Kasaya – A scripting language and runtime for browser automation
31–40 of 109 posts
Re: Show HN: Kasaya – A scripting language and runtime for browser automation
#32This looks great. I also want to shamelessly plug something similar I am working on, Taiko, it uses javascript and comes with a REPL that generates scripts like. await openBrowser(); await goto("http://todomvc.com/examples/react/#/"); await write("automate with taiko"); await press("Enter"); await click(checkBox(near("automate with taiko"))); The reason we use a javascript is familiarity, IDE support and use of exist…
Re: Show HN: Kasaya – A scripting language and runtime for browser automation
#33Would be great if this "transpiled" into a more robust and popularly supported formalism so that the functionality could be refined over time. I could see implementing this script as being a requirement for a new feature delivered by engineering, and then having test engineering use that functionality as a foundation for more thorough qualification. I worry that this approach by itself will fall into the same issues…
Great idea. Would love to see something like that. For now I'll have to continue to roll my own generators/templates.
Re: Show HN: Kasaya – A scripting language and runtime for browser automation
#34This looks great. I also want to shamelessly plug something similar I am working on, Taiko, it uses javascript and comes with a REPL that generates scripts like. await openBrowser(); await goto("http://todomvc.com/examples/react/#/"); await write("automate with taiko"); await press("Enter"); await click(checkBox(near("automate with taiko"))); The reason we use a javascript is familiarity, IDE support and use of exist…
I was very impressed by this! Great minds think alike. Would love more feedback if you have any.
Here are a few things we learned after getting feedback from users.
* Minimise or better remove all pre-requisites npm install should bring in everything.
* Talk directly to the browser using the Chrome DevTools protocol it's not that hard and is now supported by firefox.
* Play well with others in a language ecosystem for example if javascript, test runners like gauge, jest, mocha and assertion libraries like chai etc do not build these capabilities.
* Run well in headless environments.
All the best!Re: Show HN: Kasaya – A scripting language and runtime for browser automation
#35We 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" ht…
Re: Show HN: Kasaya – A scripting language and runtime for browser automation
#36All those kind of projects share the same flaw: it uses a DSL instead of an existing language, so tooling/documentation/testing/support/modules are going to be very weak, and 100% depending of the creator for the first years, in a domain that is already a niche. It could be a library with good API instead. Or even a special env setup for an existing language with injected built-in and automatic imports. Now you could…
I actually kind of really like this DSL, I think it is going to be easier for my QA team to use this, than asking them to use javascript.
But it's a trap.
Re: Show HN: Kasaya – A scripting language and runtime for browser automation
#37Re: Show HN: Kasaya – A scripting language and runtime for browser automation
#38All those kind of projects share the same flaw: it uses a DSL instead of an existing language, so tooling/documentation/testing/support/modules are going to be very weak, and 100% depending of the creator for the first years, in a domain that is already a niche. It could be a library with good API instead. Or even a special env setup for an existing language with injected built-in and automatic imports. Now you could…
I actually kind of really like this DSL, I think it is going to be easier for my QA team to use this, than asking them to use javascript.
You can setup a DSL in scala.js and you can get the best of both worlds (though, parentheses are fine for me so I would just use one of the many fine existing JS libraries).
Re: Show HN: Kasaya – A scripting language and runtime for browser automation
#39Earlier quoted context omitted.
I was very impressed by this! Great minds think alike. Would love more feedback if you have any.
For sure! Here are a few things we learned after getting feedback from users. * Minimise or better remove all pre-requisites npm install should bring in everything. * Talk directly to the browser using the Chrome DevTools protocol it's not that hard and is now supported by firefox. * Play well with others in a language ecosystem for example if javascript, test runners like gauge, jest, mocha and assertion libraries l…
Re: Show HN: Kasaya – A scripting language and runtime for browser automation
#40Earlier quoted context omitted.
Yes it does...
Note that some sites block Selenium, since browsers report the use of WebDriver, and Selenium injects known predictable Javascript. Does Kasaya do anything to mitigate this?