Questions tagged [agouti]

Agouti is a library for writing browser-based acceptance tests in Google Go.

Agouti is a library for writing browser-based acceptance tests in Google Go. It provides Gomega matchers and plays nicely with Ginkgo. See agouti.org and the GoDoc for documentation.

Project links

Learning

Related Projects

10 questions
2
votes
1 answer

How to fix: Chromedriver Page Immediately Closes

I run a program that tries to open a webpage using agouti/chromedriver in go, but as soon as it calls the new page, it closes the page. Subsequent attempts to access the page result in an "invalid session id" error. How can I get the page to stay…
elphraim
  • 31
  • 5
2
votes
0 answers

Mocking request headers phantomjs and agouti

I'm using agouti in a project of mine to test my webpage. Everything works fine but Im having trouble finding a way to mock request headers. I'm currently using platformjs trough reuirejs and I would like to "fake" the os header sent by the browser…
Pablo Jomer
  • 9,870
  • 11
  • 54
  • 102
1
vote
0 answers

Can not Use Selenium Driver With Golang Agouti Package

I use agouti package in golang. I run selenium docker image, and create a new web driver with the following command: capabilities := agouti.NewCapabilities().Browser("chrome").With("javascriptEnabled") command := []string{"java", "-jar",…
computerengineer
  • 109
  • 1
  • 2
  • 8
1
vote
2 answers

Retrieve the session ID in *agouti.webdriver for Golang

I want to use the session id while creating a new WebDriver with Agouti to pass it to SauceLabs for status update. Commands Used: url := fmt.Sprintf("http://%s:%s@ondemand.saucelabs.com/wd/hub", username, accesskey) page,err :=agouti.NewPage(url,…
Anvesh
  • 149
  • 1
  • 8
1
vote
0 answers

How can i active Javascript? Use golang, PhantomJS(agouti)

How can i active Javascript? Use golang, PhantomJS(agouti). Hi. I'm scraping (eg. hulu.com) to use golang and phantomjs(use: https://github.com/sclevine/agouti). But, PhantomJS is blocking Javascript. How can i active Javascipt? Please tell…
hagetak
  • 21
  • 4
1
vote
0 answers

Go, go_appengine, and agouti - how?

I'm building a small app in Go running on Google Appengine. I've got it running locally, with tests using aetest. Works great. I'd like to add BDD tests using Agouti. What I'm trying to understand is how Agouti can work with aetest. My Agouti tests…
Jim Hopp
  • 11
  • 3
1
vote
0 answers

Go agouti testing fill textarea with PhantomJS perfomance issue

I am using agouti with gomega and ginkgo in Go to test an upload form of our application consisting of an textarea which we fill. This Code works fine for 1500 rows: upload_externalData := page.Find("#upload_externalData") buf :=…
Harry
  • 1,313
  • 3
  • 22
  • 37
0
votes
0 answers

How can I click a radio button using agouti of Go?

I'd like to check the radio button by click. The html is as below. (The id, name, and value are incidentally not stable.) I've tried the following codes: page.Find("ZZZZ").Click() However,…
ss2
  • 11
  • 1
0
votes
0 answers

Clean cookies in default Chrome using chromedriver

I have my Chrome browser and I want to automate some actions using chromedriver. But when I use my default profile (default user or new "bot" profile) I always start with cleared cookies for that profile. Can I automate existing Chrome user activity…
zored
  • 2,718
  • 3
  • 19
  • 23
0
votes
0 answers

Chromium with agouti pkg on AWS Lambda doesn't work (couldn't take screenshot)

I'm trying to use headless-chromium on AWS Lambda with Golang and sclevine/agouti. I confirmed that chromedriver is executed on Lambda using exec.Command. Error occurred when taking screenshot, but, I'm not sure headless-chromium is started…
Toshinori Sugita
  • 1,674
  • 1
  • 13
  • 12