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
0
votes
1 answer

Multiple THEN statements in intern functional test

I have a test that will do something and test that x is visible - 'WHEN something THEN x is visible': function () { var myClass= new MyClass(this.remote); return myClass doSomething() .findById('x') …
andy mccullough
  • 9,070
  • 6
  • 32
  • 55
0
votes
2 answers

Why does a click handler NOT run in Leadfoot?

I am trying to write functional tests using Intern framework which uses Leadfoot library to implement WebDriver API as I am using Selenium Grid setup to test my webapp on remote browsers. The app is already up and running. The functional test I use…
KiaMorot
  • 1,668
  • 11
  • 22
0
votes
1 answer

Intern:Leadfoot - testing drag-n-drop

I have a webapp that uses dojo widgets and drag-n-drop functionalities and I'm using Intern in order to test it. Now I want to test the drag-n-drop mechanism, and for this I hoped to use the Leadfoot's helper, DragAndDrop.js As seen in the script's…
Bruno Bruzzano
  • 477
  • 7
  • 21
0
votes
1 answer

How to wait for function to complete before returning?

i'm attempting to create a function I can call from any test that'll look at the element being passed (link text, Css Selector, Xpath, ID), click on the element, and then verify the URL that comes up after it loads. The problem i'm having is that…
0
votes
1 answer

polluntil undefined is not a function

I have the following code: define(function(require) { function myclass(remote) { this.remote = remote; } myclass.prototype = { constructor: myclass, ..... create_campaign: function() { var name = 'mycampaign'; …
Bran
  • 617
  • 8
  • 21
0
votes
1 answer

screenshot function for functional test with internjs Framework doens't work

I'm using the intern framework for functional testing and running browser locally (Firefox version 39). Is there a way to capture screenshot png-file? I tried the following example How to take a screenshot with local browser (FF) and write to file…
0
votes
1 answer

Difference between Intern's / Leadfoot's timeout functions

Leadfoot has the method setTimeout() which takes 'script', 'implicit', or 'page load' as parameters, but it also has setPageLoadTimeout(), and setFindTimeout(). What is the difference between setFindTimeout and implicit? What is the difference…
mziemer
  • 338
  • 3
  • 13
0
votes
1 answer

How to continue the intern test once timeout for leadfoot/Session#executeAsync calls has reached

There are array of URLs to load within an application. A page ready event is fired once the page load. However, when running on sauce labs, the event does not fire on a random page and test fails. Is there any way to continue the tests if the event…
user2325313
  • 99
  • 2
  • 13
0
votes
1 answer

Intern test returns incorrect value for range input

I have a test that checks the value an HTML5 range input. return this.remote // etc. .findById('range') .getAttribute("value") .then(function(val){ expect(parseInt(val)).to.equal(2); }); The value is correct when I check its…
Corvae
  • 308
  • 1
  • 10
0
votes
1 answer

How to maximize chrome browser using intern leadfoot

I am having hard time maximizing chrome browser using theintern/leadfoot command maximize. I tried maximize window .maximizeWindow() (it works for firefox but not for chrome browser. I even tried execute("window.resizeTo(14400, 8130);") and…
User987
  • 1
  • 1
0
votes
1 answer

Unable to findByXpath using Leadfoot / Intern

Using Intern JS with WebDirver to communicate with Appium 1.4.1, I have a simple functional test, part of which should find a text input box on the login screen of our iOS app, tap into it and type the user's login name: define([ …
steveharman
  • 125
  • 1
  • 10
-1
votes
2 answers

executeAsync not passing return value to callback

I'm using intern JS/leadfood testing framework. I'm using executeAsync. I expect the return value from executeAsync to be passed to the callback to executeAsync, but this is not happening. Should the following work? return …
cosmosa
  • 743
  • 1
  • 10
  • 23
-2
votes
1 answer

Leadfoot's pollUntil() Not Triggering on Variable Value Change?

I currently am writing functional tests in Intern and have run across a small issue. During the before portion of my test suite, I make an ajax call to an API to retrieve a variable's value. This variable being set is critical to the next step in…
Tyler
  • 740
  • 9
  • 27
1 2 3 4
5