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 get the performance logs in leadfoot internjs?

SImilar to protractor, I'm looking for some info on getting performance logs in leadfoot of internjs. Below is only an example of getting logs in protractor browser.manage().logs().get('performance').then(function (browserLog) { if…
sridattas
  • 459
  • 1
  • 6
  • 21
0
votes
1 answer

How to pass value from execute to another command using intern and leadfoot

Basically I'm trying to resize the screen to full height and width using values returned from the execute function. I'm struggling to figure out how to pass the values from the execute function to my resize function and was hoping someone could take…
MorningDew
  • 503
  • 3
  • 9
0
votes
1 answer

how to wait for all redirects to finish using intern/web driver?

I'm trying to test that the application redirects the user away from the authenticated route since they are not an admin. But I need a way to wait for all redirects to finish before I call getCurrentUrl() it('should not allow regular user…
chovy
  • 72,281
  • 52
  • 227
  • 295
0
votes
1 answer

Inter findByXpath ignore previous selection

I'm having issues with findByXpath ignore previous selection (selection done with the findXxxxxXxxx Commands). My Page object looks like this class DeleteModalUiComponent { constructor(private remote: Remote) { } …
Daniel
  • 2,288
  • 1
  • 14
  • 22
0
votes
1 answer

How to use intern leadfoot waitForDeletedByXpath function?

On what scenario can i use intern's leadfoot waitForDeletedByXpath function? From the documentation, what I understood is this method waits for the element to become invisible in Page. But while implementing it doesn't seem so. The scenerio i'm…
0
votes
2 answers

The function setFindTimeout does not work for me

I write functional tests for the web application on Intern. I have a file in which I describe all the actions on the test, and also there is a test where these actions are called for example: there is an Action.ts file in it functions which in the…
Bigar
  • 1
0
votes
1 answer

TheIntern - determining the environment for dynamic test generation

I have a situation in which I need to dynamically generate functional tests. Basically, I want to use BrowserStack to run my tests on a variety of different environments, but I want to register a different suite of tests depending on whether I'm…
tadasajon
  • 14,276
  • 29
  • 92
  • 144
0
votes
1 answer

In intern.js Leadfoot, how can I determine what device / browser I am running on?

I have a test suite using theintern that I run on a whole array of different browsers and devices via BrowserStack. I would like to be able to take some slightly different actions on mobile vs desktop - is there any way I can include logic to…
tadasajon
  • 14,276
  • 29
  • 92
  • 144
0
votes
1 answer

How can I simulate a mobile device with intern / leadfoot

I would like to test our mobile site but it is only served if we simulate a User Agent via chrome's device mode. How can I use the leadfoot API to simulate a mobile device such as an iPhone?
MaximumBoy
  • 71
  • 10
0
votes
0 answers

Intern Functional Testing, how to iterate array of elements

First let me say that I am fairly new to intern and Leadfoot API. What I am trying to do is iterate through an array of elements and perform an assertion on each of them. Here is my code: 'Alerts': function () { return this.remote …
Williz
  • 309
  • 1
  • 9
0
votes
1 answer

Intern framework - LeadFoot - unable to locate element

I am writing functional test cases using leadfoot intern framework. Test Case: Enter the form field and click a button which will open up a bootstrap modal. All i am trying to do is verify the display property of the element present on the…
hyde007
  • 9
  • 4
0
votes
1 answer

How do I catch an exception in intern JS?

I have the following snippet ,clickStaleElement: function(remote, id) { return remote .findById(id) .execute(function(id){ //force org.openqa.selenium.StaleElementReferenceException …
KiaMorot
  • 1,668
  • 11
  • 22
0
votes
1 answer

How do I click and type on element in the shadow dom using intern

I have a Google Polymer Project that I am trying to implement functional testing with Intern, which can be found here: https://theintern.github.io/ The code I'm trying to test is in the Shadow DOM, as the page uses a variety of web components. The…
GeeKay
  • 13
  • 3
0
votes
1 answer

Get Number of element returned by findAllByXpath in leadfoot

How to get the count of the element returned bythis.remote.findAllByXpath() in intern js (leadfoot).
CodeBlooded
  • 185
  • 5
  • 16
0
votes
1 answer

How do I test a view library in intern.js?

I am building a library which uses backbone as a base. My library has a View class, which is an extension of Backbone.View. It has an HTML Element as a property of it. I have a bunch of new functions on the view and I want to test them with…
Nick Manning
  • 2,828
  • 1
  • 29
  • 50