Questions tagged [leadfoot]

Leadfoot is a JavaScript client library that brings cross-platform consistency to the Selenium WebDriver API.

Leadfoot is also the only WebDriver client library that includes an exhaustive unit test suite that verifies that results are consistently returned from all remote drivers. Through this test suite we have discovered and reported over 15 defects to upstream WebDriver server implementers.

leadfoot

73 questions
13
votes
6 answers

unknown error: failed to write prefs file

I keep getting the error while running functional tests using runner with following: selenium 2.44 Chrome Driver Windows Server 2008 R2 Enterprise Error: Error Description: Listening on 0.0.0.0:7000 Starting tunnel... UnknownError: [POST…
Uday
  • 131
  • 1
  • 1
  • 3
4
votes
2 answers

Why does a bunch of leadfoot stuff run in the browser when starting my intern test?

All, Thank you in advance. I am running a single functional test using intern and local selenium. When I start the test, the following happens: Chrome opens Lots of stuff runs (not mine). My test finally runs I looked at the selenium output and…
rockerston
  • 521
  • 2
  • 10
4
votes
1 answer

Intern: loop on Promise.>

Let's say I have the following DOM structure, for simplicity:
A
B
Bruno Bruzzano
  • 477
  • 7
  • 21
4
votes
1 answer

Setting cookies for internjs functional tests

I'm trying to set a cookie for an intern functional test, but the cookie data doesn't seem to be available on the page. Here's the setup: registerSuite(function() { 'test': function() { return this.remote …
Brian Tol
  • 4,149
  • 6
  • 24
  • 27
2
votes
1 answer

Leadfoot moveMouseTo requiring X/Y offsets when element is present

In the docs for leadfoot Command#moveMouseTo it states that every argument is optional (https://theintern.github.io/leadfoot/Command.html#moveMouseTo). When I pass in an element without passing in X or Y offsets, I get an error about the command…
MBielski
  • 6,628
  • 3
  • 32
  • 43
2
votes
2 answers

Not able to run intern functional tests. Error: [POST http://localhost:4444/wd/hub/session] connect ECONNREFUSED

Having node 0.12 and intern 3. Trying to run intern based functional tests gives following error: SUITE ERROR Error: [POST http://localhost:4444/wd/hub/session] connect ECONNREFUSED at Server.createSession …
user2325313
  • 99
  • 2
  • 13
2
votes
1 answer

How to listen for a JS page load event using intern

The application under test emits 'page-load' event after every page load and I want to take screenshot after the page has successfully loaded. Tried to listen for this event using Leadfoot's execute method. But it does not seem to work. Can anyone…
user2325313
  • 99
  • 2
  • 13
2
votes
2 answers

Intern test framework: Command + v for pasting contents from clipboard does not work

I have contents in the clipboard which I would like to paste to a textbox. When I try .click() .pressKeys(['\uE03D', 'v']) it does not paste the contents to the textbox. All other special keys work. For example, for using shift key, when I…
user3587203
  • 66
  • 1
  • 6
2
votes
1 answer

Intern and Leadfoot conditional wait until

If there a way to perform .click() after the element become visible. My function chain is built like that: this.remote.findByXpath("//div[@data-index='blockContainer']/button[text()='Create new']").then(function(element) { return…
Alex C Li
  • 21
  • 2
1
vote
1 answer

What happens in the browser before the actual functional tests are run

When running Intern functional tests in the browser (not headless), I notice that a bunch of different things happen before the tests are actually run. Some things that happen are navigation to different pages, a dropdown with "foo" and "bar", and…
tyanthony
  • 45
  • 5
1
vote
1 answer

How do you use pollUntil with intern 4 functional tests

I'm writing intern 4 functional tests. When I try to use pollUntil it is undefined .findDisplayedByCssSelector('button.primary') .then( el => pollUntil(function(pollEl) { if( pollEl.isEnabled() ) return true; return null; }, el,…
1
vote
1 answer

Simulating hotkeys in Intern (3) functional tests

I'm trying to test some hotkeys on my site. Typing Ctrl+5 in a field should do something. I'm doing: command.get(...) ... .findByCssSelector('input') .click() .pressKeys([keys.CONTROL, '5']) .pressKeys(keys.NULL) …
sheodox
  • 767
  • 1
  • 7
  • 17
1
vote
1 answer

How to take screenshots inside execute or executeAsync using Intern

In this test I'm working on, I'm using executeAsync() to catch some events of the page being tested. I don't know the number of events that are going to happen and for each one that it's catched I want to take a screenshot with .takeScreenshot().…
ruiribeiro
  • 13
  • 4
1
vote
2 answers

Click on each first child radio (undefined child length)

I would like to click each first child of class="cf" and should be in order, first cf first because the other radio is disabled unless you click the first one. The cf length is undetermined (in this example I put 3) so I need to first get the length…
ZergRush
  • 21
  • 5
1
vote
1 answer

Intern / Leadfoot: How to get HTTP status code

How can I determine the HTTP status after moving to some page using intern? this.remote.get('http://google.de') // status 200 this.remote.get('http://google.de/alsdflasdf') // 404 Not Found
Kiechlus
  • 1,167
  • 12
  • 21
1
2 3 4 5