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

How to open new browser window in intern js?

I am automating the UI test of my application. There are some cases when i want my test script to close the current browser and and run next test by opening new browser. The problem is that I am unable to figure out how to open new browser window…
CodeBlooded
  • 185
  • 5
  • 16
0
votes
1 answer

"Unable to find element on closed window" error when finding an element after going to another url

In the test I'm clicking a menu button that go to another page. Afterwards, when I try to find any element on page(The page exists, i can see it), the error 'unable to find element on closed window' keep appearing. I have tried directly getting the…
Ravin
  • 1
  • 2
0
votes
1 answer

Can I use Selenium methods together with Intern/Leadfoot methods?

I would like to use some Selenium methods together with Intern/Leadfoot methods. How can I do it? Do I have to do it after promise returned, right? Like the following code? Are there other ways to do it? ... var webdriver =…
srgbnd
  • 5,404
  • 9
  • 44
  • 80
0
votes
1 answer

Method acceptAlert() doesn't work in Intern/Leadfoot

I can't understand how to use the acceptAlert() method. It doesn't work for me. I try to accept a pop-up alert with two buttons: Ok and Cancel. Here is a piece of my testing code. queryDatasource: function (kibiUrl, title, description, datasource,…
srgbnd
  • 5,404
  • 9
  • 44
  • 80
0
votes
1 answer

Intern: Is it possible to mark a test as pending / disable it?

How can I disable a functional test in intern other then using comments? We are using the Object Interface.
Kiechlus
  • 1,167
  • 12
  • 21
0
votes
1 answer

Can you upload remote files with intern leadfoot

I'm testing a file upload feature and trying to upload remote files(e.g. https://s3.amazonaws.com/some_dir/some_file). Using type() throws an error stating the path is not absolute. Is this supported by intern? If yes, how should it be done?
user3047479
  • 167
  • 2
  • 13
0
votes
1 answer

Error when trying to switch back to the original browser window using intern leadfoot

I'm getting the following error when I call switchToWindow(handle): null value in entry: name=null The original window is still open when I try to switch and handle is not null or empty. Here is the code I'm using: var session = this.remote; var…
user3047479
  • 167
  • 2
  • 13
0
votes
1 answer

Intern/Leadfoot : Getting error - Expecting a function in instanceof check, but got [object Object] on .Click() method

I am learning Intern/leadfoot and trying to write a simple test. The test is logging an user to the site and logging out the user after verification on the next page. Using Chromedriver v2.21. Getting unknown error : Expecting a function in…
govba
  • 1
  • 3
0
votes
1 answer

Leadfoot + sauce: mapping a collection of elements using getAttr fails in mobile only

My use case varies for this, but in general i'm trying to collect a bunch of elements and then apply _.map() to each. The problem is that this series of .getAttribute() calls can cause a test that works locally to fail against a remote server like…
erikdstock
  • 1,117
  • 9
  • 16
0
votes
1 answer

Log out afterEach test- intern + leadfoot

Trying to test some user permissions here, and i'm having trouble logging out after each test... afterEach: function () { return this.remote .clearLocalStorage() // .clearCookies(); }, nextTest: function () { return…
erikdstock
  • 1,117
  • 9
  • 16
0
votes
2 answers

In Intern.js Leadfoot, how do I preform a CTRL Click

I'm just wondering what the preferred way to preform a ctrl + click action in leadfoot is. In java I would have used the Actions class and used keyDown, but since we have moved to a JS based framework I'm a complete fish out of water! I've seen in…
Peter McKinney
  • 463
  • 3
  • 13
0
votes
1 answer

Events after clickMouseButton

In one of my tests I have the mouse moved to a specific location and then clickMouseButton() is called. This action is to change the data that is displayed (paging the data.) However, after the click, when I try to get the text in a column of the…
MBielski
  • 6,628
  • 3
  • 32
  • 43
0
votes
0 answers

How to avoid UnexpectedAlertOpen - Intern Leadfoot

I have a written a intern functional test which copies data from one cell and pastes it to another cell. The problem is every time run the test and copy the data I get a dialogue box with the message Pasting from clipboard is currently turned off by…
8785krs
  • 101
  • 1
  • 1
  • 9
0
votes
1 answer

Intern leadfoot (element not visible) : Wait till element is visible using isDisplayed?

I am trying to test the login dialogue of my application. There is a wait until an element with class name "LoginDialog" is added to the DOM. However, the dialog doesn't appear right away anymore on the UI though it is still added to the DOM right…
8785krs
  • 101
  • 1
  • 1
  • 9
0
votes
1 answer

iterating over elements using Intern/Leadfoot

There are 2 places below where code (in Javascript) is never executed although it appears as though it should. See code below were the comment says 'THIS CODE NEVER GETS EXECUTED'. I happen to be in an environment where the IDs are generate…
Molamini
  • 11
  • 2