Selenium webdriver based testing in Go

815 views
Skip to first unread message

Tong Sun

unread,
Dec 31, 2017, 5:55:39 PM12/31/17
to golang-nuts
Hi,

Anyone here ever looked into doing Selenium webdriver based testing in Go?

If anyone has experiences before, I'd like to know your view of the whole thing. 
Things come to mind are, 

- Do you use Selenium IDE or write Selenium webdriver code directly?
- Selenium IDE is very helpful, but seems to lack the support for Go. Agree? Solution? 
- Of all those Selenium/Webdriver client for Go out there, 
   e.g., selenium, & go-selenium, just to name only a few, 
   have you looked into them before making your choice(s)? 

I.e., if anyone has experienced Selenium & Go before, please share your experiences/findings, 
which will be very valuable to me, and all others looking into the same thing. 

Thanks a lot

Jonathan Yu

unread,
Dec 31, 2017, 8:42:59 PM12/31/17
to Tong Sun, golang-nuts
I've had a lot of success with agouti, though I don't know enough about Selenium to be sure that it's what you're asking for. I used it to do browser testing of a rich internet application, with chrome driver.

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Miki Tebeka

unread,
Jan 3, 2018, 12:42:03 AM1/3/18
to golang-nuts
Original author of github.com/tebeka/selenium here. Currently maintained by the awesome Eric Garrido and IMO actively used inside Google for testing.

I mostly wrote tests in Go, not using the IDE.

Simon Ritchie

unread,
Jan 5, 2018, 3:14:46 AM1/5/18
to golang-nuts
I’ve used the Selenium Firefox plugin to test web servers written in Go. It’s great for end to end testing of a web server because it doesn’t know or care what the server is written in. It’s only concerned with the resulting HTML.

I recorded some web sessions using the plugin and can then play them back to test any changes to the code. The sessions are recorded in plain text so you can edit the description and replace any variable content with wildcards. For example, one of the tests involved creating an object using fixed values. The resulting page displays the result including the UID, so it’s mostly the same each time except for the UID. My edited Selenium script checks each field but uses a wildcard for the UID.

There are lots of web scripting systems that do this sort of testing, but Selenium is the only one I know about that has a nice easy visual interface and is free.

Tong Sun

unread,
Jan 5, 2018, 8:08:24 AM1/5/18
to golang-nuts, Simon Ritchie, Miki Tebeka, Jonathan Yu
Thanks to everyone who shared their experiences!


--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/TNwwKz_RwZg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts+unsubscribe@googlegroups.com.

Oceans Blue

unread,
Oct 29, 2020, 2:28:11 PM10/29/20
to golang-nuts
@ simonri...@gmail.com  

Do you know of a good tutorial that can get me started?
Reply all
Reply to author
Forward
0 new messages