Questions tagged [webdriverjs]

JavaScript driver for selenium test automation.

JavaScript based selenium driver. For more info see the API

68 questions
2
votes
1 answer

Is there a way to add timer events to Protractor's control flow to measure execution time of specific tasks?

Here's a quick example of a test that clicks a field to enter in some value: it('should enter someValue into field', function() { var field = $('.someField'); // Insert timer start function here field.click(); …
jjelly
  • 73
  • 9
2
votes
3 answers

Capture WebdriverJs value for use outside of block

I am trying to work out how to return a value from a block that uses a promise to retrieve the value when using WebDriverJs + Mocha. I have this example code to try to show where I face the problem, the mocha test 1) fails as it doesn't use the…
Alister Scott
  • 3,675
  • 24
  • 41
2
votes
1 answer

How to use/seperate Enums, constants & locators in Protractor

I am trying to make my tests more cleaner/parameterized by moving the enums, constants & locators to other files. Is there a way to do this while using protractor/java script. If yes, What is the best way to do this?
kvm006
  • 4,554
  • 2
  • 18
  • 22
2
votes
2 answers

Non-angular page opened with click - angular not defined using ignoreSynchronization or waiting for Angular without

After a lot of research, and tinkering, I can't seem to actually get my Protractor test to do anything else other than have an Angular related error, even though I am using browser to avoid Angular being detected at all. The test involves an Angular…
2
votes
4 answers

Check if element is not displayed - WebDriverJS

Using selenium and webdriverJS I want to create a test to check if an element is not displayed on the page. To check if one or more elements are present, I decided to use the isDisplayed()…
d_z90
  • 1,213
  • 2
  • 19
  • 48
2
votes
2 answers

console.log messages are appearing before actual task is performed

I using console.log to write some elaborated msg about the current task/expect to be performed by protractor, but I found on console those messages are appearing before the actual task is performed in browser. Doing like this - it('should validate…
coure2011
  • 40,286
  • 83
  • 216
  • 349
2
votes
1 answer

How to disable animations with Protractor in an AngularJS app?

As suggested on the Protractor page I tried adding the following in my config file: onPrepare: function() { var disableNgAnimate = function() { angular.module('disableNgAnimate', []).run(['$animate', function($animate) { …
Darkbound
  • 3,026
  • 7
  • 34
  • 72
2
votes
2 answers

Accessing web elements inside iframe using phantomjs with protractor

Can phantomjs perform actions like getText() or enterText() inside iFrame? I am using protractor to do my testing. Phantomjs can perform actions in the default frame but inside iframe the locators get timed out. Any suggestions?
2
votes
1 answer

Protractor: Check for element present while upload is in progress

I am using protractor for automating AngularJS application. There is a scenarios where I need to upload an image using the browse button and check that a progress bar is present while uploading in progress. I am using the following code to achieve…
Abhishek Swain
  • 1,054
  • 8
  • 28
1
vote
2 answers

Protractor / Jasmine expect object array as pattern

I have a test where i'm expecting an array of objects. The below expect condition works fine. But each day due to the system under test behavior we need to change the expected data object array. So my question is, how to expect a pattern for these…
Umesh_IoT
  • 59
  • 1
  • 11
1
vote
2 answers

Protractor / WebDriverJS Return element values as an array of objects

I'm from Java+WebDriver background and new to Protractor, WebdriverJS and Jasmine. In the displayed image I'm trying to hover the mouse over all bubbles and get the tool tip values (city, sold, connected) and assign them to an array as objects and…
Umesh_IoT
  • 59
  • 1
  • 11
1
vote
2 answers

Protractor hover mouse over X Y coordinates on SVG pie chart and return tool tip value

I'm from WebDriver+Java background and new to Protractor, WebDriverJS and Jasmine. I have a page object and there I'm trying to define a function that will hover over a pie chart on a given X Y coordinates and get the tool tip value and return it…
Umesh_IoT
  • 59
  • 1
  • 11
1
vote
1 answer

Protractor ManagedPromise::2516 {[[PromiseStatus]]: "pending"}

I'm using protractor with Jasmine and I use page object pattern. In one of my page object I'm trying to hover the mouse over a pie chart. But when I use the following method it fails to get value for x coordinate using getDisHoverPoint(). When I put…
Umesh_IoT
  • 59
  • 1
  • 11
1
vote
0 answers

Protractor/CucumberJS/Gup - e2e tests stop running when single test fails instead of continuing

When you're running your suite of e2e tests via a CI server like Bamboo; you expect to come back the next day or hour to see a report showing how many tests passed/failed. In my case, my e2e tests stop running as soon as a single test fails so I…
pelican
  • 5,846
  • 9
  • 43
  • 67
1
vote
2 answers

Webdriver JS - Store sendKeys to variable and reuse

Currently I have a form with 10 fields that I need to do sendkeys > store the value and after assert this value when save the form. For each of these fields I need to create a function and store the value in a variable or is there a better way? My…
Rafael C.
  • 2,245
  • 4
  • 29
  • 45