Questions tagged [hound]

Use this tag for questions related to the Hound integration testing Elixir module.

18 questions
4
votes
0 answers

How do I validate an input in elixir?

I am trying to write tests using hound and elixir and I cant seem to figure out a way to validate what was input into an input field... There is obviously a way to do this, but I have not figured out how to do so.... Example:
Kody Berry
  • 111
  • 1
  • 7
4
votes
1 answer

Elixir Hound wait for page to load

I'm submitting a login form and trying to capture the HTML afterwards using elixir / hound. After submitting I run page_source and get nothing. If I wait for a second (for the page to finish loading) then I get back the html. Is there a way to make…
newUserNameHere
  • 17,348
  • 18
  • 49
  • 79
4
votes
3 answers

Elixir & Hound headless browser

Hound is pretty nice for testing web apps etc. when you need a headless browser. I got it working, played around with the tests etc. but there are 2 questions about hound which maybe someone can explain who is familiar with Elixir :) 1.) I’m using…
ctp
  • 1,077
  • 1
  • 10
  • 28
2
votes
0 answers

How to track usage of Hound

What are some ways we could monitor Hound, both usage and specific searches? Is there any systems either built in or that can be added as extensions? We are running Hound on the intranet but we have no visibility of how it's being used and how much…
Newton
  • 187
  • 7
2
votes
1 answer

How to run tests in elixir/phoenix using hound and selenium

Here is my mix.exs defmodule HelloPhoenix.Mixfile do use Mix.Project def project do [app: :hello_phoenix, version: "0.0.1", elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, …
Karthik
  • 315
  • 1
  • 4
  • 16
1
vote
0 answers

How to preform a wait using hound/elixir?

I am trying to wait for an element to appear on the page after a button click, but cant figure out how to wait for that element... I know there is the :timer.sleep(100), but whenever I use this I get the following error. 20:17:56.605 [error]…
Kody Berry
  • 111
  • 1
  • 7
1
vote
1 answer

How to get the status of tests in my file using hound?

ExUnit provides some methods to get test result. I am not sure how to use it https://hexdocs.pm/ex_unit/ExUnit.Test.html and https://hexdocs.pm/ex_unit/ExUnit.Formatter.html. I have multiple tests in a file. How can I generate results at the end…
1
vote
1 answer

How to take a screenshot on failure using hound/elixir

I am trying to take a screenshot using take_screenshot() (Hound). I just need to capture the screenshot on failure. I have tried try/rescue however rescue block always executed even though assertion fails. try do // some page elements action …
1
vote
1 answer

How to select an option from a select drop-down list with Hound?

I have the following drop-down list: I am writing integration tests in Elixir with…
Ronan Boiteau
  • 9,608
  • 6
  • 34
  • 56
0
votes
0 answers

How can I take downloaded files from browser's cache into my code?

I would like to testing my site to ensure that some versions of documents and images are present when some user-agents are going to my site. I'm preparing now wallaby with geckodriver and chromedriver for the starting point of such testing. My main…
Dimitri
  • 623
  • 7
  • 14
0
votes
1 answer

Create sound on sound with the hound

How can you make one file, for example: "out.wav", and in it add "1.wav" 10 times, but without delays. That is, to superimpose the sound on another sound even if the previous one has not finished playing. As I've been trying to do for about an hour…
Inears
  • 3
  • 2
0
votes
0 answers

Error while recording audio to a file with Hound and PortAudio

For a project I have been working on recently I need to record 3 seconds of audio when the user clicks a button and save it to an audio file. I've got portaudio and hound set up and working to record and output a WAV file but it creates a file…
Andrew Gosselin
  • 153
  • 1
  • 16
0
votes
1 answer

How to assert an element is present after a click in Hound?

I'm using Hound as webdriver framework for leveraging Selenium in Elixir. I'm testing facebook account creation. After I fill out a negative test (firstname = Roberto, lastname = asdlkfj;)I click submit and I am trying to get an error for not having…
Jackson
  • 51
  • 9
0
votes
1 answer

How to implement Chromedriver in Hound with Elixir

I'm trying to start an elixir project with hound for browser automation. I can get it working with firefox just not chrome. My chromedriver is set in my environment variables on my system and this is my config.exs file use Mix.Config config…
Jackson
  • 51
  • 9
0
votes
1 answer

Trying to read a webpage in Hound, I get a compilation error for Hound.start_session

I started a new project and configured it like so: mix new example cd example I emptied ´lib/example.ex´ and placed the following code there: Application.start :hound defmodule Example do use Hound.Helpers def run do Hound.start_session …
Alex V
  • 3,416
  • 2
  • 33
  • 52
1
2