JavaScript driver for selenium test automation.
Questions tagged [webdriverjs]
68 questions
1
vote
3 answers
Jmeter WebDriver Sampler How to load Firefox Profile
I am writing the JMeter script for sampling the UI response time for each event using WebDriver Sampler plugin.
My application allows only certificate-auth access to the GUI.
So my question is like can we load a custom profile for Firefox using…

Vikki Lohana
- 39
- 2
- 10
1
vote
0 answers
Test reporting in selenium WebdriverJS with node JS
We have requirement to automate application using selenium with Javascript. Im familiar with Selenium with Java but completely new to JS. I have started exploring WebdriverJS using nodeJS. How can we have test reporting for webdriverJS? Is there any…

Tanmay
- 227
- 1
- 3
- 11
1
vote
3 answers
selenium-webdriver pass an array of functions as argument to executeScript
import webdriver from 'selenium-webdriver';
const driver = new webdriver.Builder()
.withCapabilities(webdriver.Capabilities.chrome())
.build();
driver.get('https://www.google.com');
let foo = function(rules) {
…

Sarbbottam
- 5,410
- 4
- 30
- 41
1
vote
2 answers
Use of Expected Conditions on Non Angular Site with Protractor Leads to "Type Error: Cannot read property 'bind' of undefined"
I am seeing following issue when I am using Expected Conditions on webelements returned through element object of Protractor. I tried with $ as well, that resulted in the same thing. I am using Protractor 3.1.1 on Node 4.2.4, Chrome V47.*
"Type…

Prakash
- 115
- 9
1
vote
2 answers
How to wait until element's text had changed in WebdriverJS?
I've found in Alister Scott's blog how to wait until element had changed to specific value. But I can't solve problem with how to create waiting for element to wait until its text had changed FROM specific value (in my case from '-') to anything…

AlenSv
- 125
- 9
1
vote
2 answers
Protractor - Error: Index out of bound exception while using the same function for the second time
I have the following function which selects a category from a list of available categories. This function works fine in my first test. But the same function with a different valid category name in my second test fails with the following…

kvm006
- 4,554
- 2
- 18
- 22
1
vote
2 answers
Error Handling in Angular Protractor
I am new to protractor for automating angularJs apps. I am trying to select one element from a list of elements. I am trying to do error handling, but nothing works as I expected because of the promises.
In the following code, if I pass an invalid…

kvm006
- 4,554
- 2
- 18
- 22
1
vote
0 answers
Setting path to local GhostDriver, on PhantomJS, using test from Selenium WebdriverJs where that value is passed in the Capabilities section
The objective is to hit a local version of GhostDriver, by leveraging the configuration of its path, that the Capabilities allow us to…

gkeyb2351
- 11
- 3
1
vote
1 answer
How to loop through webdriverjs elements until element has text value
I am trying to work out how looping in WebDriverJs works with promises.
Say you had the following html:
1
vote
1 answer
Unable to click or submit button using selenium webdriver js
I'm having an issue trying to click or submit a button on a test script I am running using selenium-webdriverjs.
I use the following NPM modules:
selenium-webdriver
mocha
chai
chai-as-promised
After filling out the form I am unable to click the…

azemPC
- 264
- 3
- 15
1
vote
1 answer
find if exist element with webdriverjs
We have problems when checked if a element exist in the page
Example
return driver.wait(function() {
driver.findElement(By.css(".class")).then(function(element){
if(element){
…

tuto
- 11
- 3
1
vote
1 answer
Is there a log function that will add the log invocation to the control-flow in Protractor?
Is there a log function in Protractor that will add the log invocation to the control-flow?
Or is there a function that exposes the control-flow for me to leverage?
Clearly, console.log will log to the console outside of the control-flow (so at the…

Ben Aston
- 53,718
- 65
- 205
- 331
1
vote
0 answers
Selenium webdriver JS doesn't click buttons after page has changed
I am testing my web application. I search for upload button and select file. Uploading changes URL of the page:
driver.findElement(By.id('upload')).click();
var upload = driver.findElement(By.id('files'));
var testDocAbsPath =…

Stepan Yakovenko
- 8,670
- 28
- 113
- 206
1
vote
1 answer
Is it possible to write these Protractor expectations using no continuations?
Using protractor and jasmine(wd) we want to check that a table on the web page contains expected values. We get fetch the table from the page using a CSS selector:
var table = element(by.css('table#forderungenTable')).all(by.tagName('tr'));
We…

Ant Kutschera
- 6,257
- 4
- 29
- 40
1
vote
1 answer
How to click on a link which contains a variable into "href" attribute?
I am writing acceptance tests using Selenium + WebdriverIO.
And I have some problems with that - I can't click on this link
client.click('a[href=#admin/'+ transactionId + ']')
transactionId - it is a variable which contains ID of transaction.
My…

Arsenowitch
- 401
- 5
- 22