Questions tagged [webdriverjs]

JavaScript driver for selenium test automation.

JavaScript based selenium driver. For more info see the API

68 questions
1
vote
1 answer

protractor kendo combo box

I am having trouble selecting a kendo combobox selection using angular js. The best way i can tell to change the value is to set the model.batch.type on the controller, but i don't know how to do that. I have messed around with executing a script to…
1
vote
2 answers

Flag to stop chrome from throttling down when in the background?

I'm doing some automated testing (with Selenium and Webdriverjs) and I notice when the Chrome window lacks focus, the execution slows down signifigantly. Is there a flag/configuratin setting I can set to stop it from "throttling down"?
Ashley Coolman
  • 11,095
  • 5
  • 59
  • 81
0
votes
1 answer

JavaScript: How can I schedule a task every two minutes in selenium webdriverjs?

I want to test my web page: login in a web page, then click refresh button every 2 minutes but not close the browser window. This is my simplified code(omit some details). var webdriver = require('selenium-webdriver'); var driver = new…
Feng Yu
  • 359
  • 1
  • 4
  • 17
0
votes
1 answer

How to use Protractor / WebDriverJS to check if an element is displayed without waiting?

How to use protractor to check if an element is visible without waiting? I'm from Java + WebDriver background and new to Protractor. In Java I used the following solution. I'm looking for a similar functionality. More Information: Currently if I use…
Umesh_IoT
  • 59
  • 1
  • 11
0
votes
2 answers

Can I return data from a promise

I'm looking for more help in relation to the SO question get an array of elements from findElement(By.className()) This is about using the javascript implementation of the Selenium Webdriver to automate a website component. From the example given in…
0
votes
1 answer

How to send keys combinations to the page using webdriverjs?

I was trying to do driver.keyDown(webdriver.Key.CONTROL).sendKeys(webdriver.Key.SPACE); But it says that the method keyDown does not exist! Does anyone know how to do this? Is there a place where i can see webdriverjs api?
Tiago Bértolo
  • 3,874
  • 3
  • 35
  • 53
0
votes
1 answer

Difference between webdriverJS ,webdriverIO and nightwatchjs

I am trying to choose a tool to work with for JAVASCRIPT automation tests. Until now i used Selenium Webdriver JAVA language with testng to build my tests, but for a specific reason i have been asked to search for JAVASCRIPT solution to write tests.…
swathi
  • 473
  • 1
  • 4
  • 11
0
votes
1 answer

Add custom screenshots to Jasmine report using Protractor

I am using protractor for the first time and doesn't know how to add custom screenshots to jasmine report. Currently i am have done some thing like this. onPrepare: jasmine.getEnv().addReporter( new Jasmine2HtmlReporter({ …
0
votes
6 answers

Could not locate Firefox on the current system (Firefox 47)

After the Firefox self-upgraded to version 47, Selenium stopped working. I followed the Javascript (Node.js) steps suggested by Mozilla regarding the Marionette driver, but the console says that it can't find Firefox on my current system, however…
Mike Trent
  • 23
  • 1
  • 5
0
votes
1 answer

Protractor: element.getText() returns an object but not String

I have also checked link: Protractor: element.getText() returns an object and not String but i found no answer for that on above link and i want string in return??
Saurabh
  • 41
  • 1
  • 2
  • 10
0
votes
1 answer

Need browser url substring inside function

I am working on angular app automation where I have written a common function which needs to called at multiple places in my tests to get the form id which is generating dynamically. This function is always returning me {[[PromiseStatus]]:…
AnuragT
  • 23
  • 3
0
votes
2 answers

How to handle findElements result?

Code 1 resultsBoard.findElements(By.css(mySelector)).then(function(elements) { elements.forEach(function(val, idx) { elements[idx].getText().then(function(text) { console.log(text); }); }); }); Code…
Tiago Bértolo
  • 3,874
  • 3
  • 35
  • 53
0
votes
1 answer

webdriver for node.js: execute scripts locally without relinquishing mouse and keyboard control?

Intermittent Failures with webdriver.js I am creating some webdriver.js* scripts to automate some time consuming test setup activities. However, when I run the script and do other things with my keyboard and mouse, I come back and find that,…
JoeyC
  • 764
  • 11
  • 19
0
votes
0 answers

How can UI automation know a ReactJS page is ready for user interaction?

Syncronization is a common problem with UI automation and nearly all modern web designs that do a lot of client side rendering or AJAX work. With JQuery I was able to watch the .active property (number of active requests), and if it went to 0 and…
Chuck van der Linden
  • 6,660
  • 2
  • 28
  • 43
0
votes
2 answers

How to use sendkeys function with promise chaining using selenium webdriverjs?

This is the code: driver.get(url).then(function(){ txtFnn = driver.findElement(webdriver.By.xpath(xpath)); return txtFnn; }).then(function(){ txtFnn.sendkeys("12345678"); }) Error: TypeError: txtFnn.sendkeys…