All Questions

88
votes
3answers
13635 views

WebDriver click() vs JavaScript click()

The Story: Here on StackOverflow, I've seen users reporting that they cannot click an element via selenium WebDriver "click" command and can workaround it with a JavaScript click by executing a scrip...
65
votes
8answers
30912 views

How to upload file in angularjs e2e protractor testing

I want to test file uploading using an angularjs e2e test. How do you do this in e2e tests? I run my test script through grunt karma.
20
votes
5answers
10134 views

How to disable animations in protractor for angular js application

Can anyone suggest me how to disable animations in angular js application while executing protractor tests. I have added below code in my protractor config file but that does not help me: var disable...
28
votes
4answers
17396 views

Protractor e2e test case for downloading pdf file

Can anyone tell me how to write test case for a link to download pdf file using jasmine framework ? Thanks in advance.
22
votes
2answers
29258 views

Using protractor with loops

Loop index (i) is not what I'm expecting when I use Protractor within a loop. Symptoms: Failed: Index out of bound. Trying to access element at index:'x', but there are only 'x' elements or ...
11
votes
3answers
2023 views

Select -> option abstraction

In Python, Java and several other selenium bindings, there is a very convenient abstraction over select->option HTML constructions, a Select class. For example, imagine there is the following sele...
86
votes
25answers
91193 views

How to select option in drop down protractorjs e2e tests

I am trying to select an option from a drop down for the angular e2e tests using protractor. Here is the code snippet of the select option: <select id="locregion" class="create_select ng-pristine...
26
votes
1answers
18924 views

Element not visible error (not able to click an element)

I want to click on a radio button, appears on a webpage. Code is as follow: HTML code: <div class="small-checkbox red-theme raleway-regular text-muted2 position-relative"> <div cla...
44
votes
2answers
30704 views

What is browser.ignoreSynchronization in protractor?

I have seen it so many times where people suggest to use: browser.ignoreSynchronization=true; // or false But I do not understand why do we need it?
9
votes
3answers
8783 views

Expected conditions in protractor

While writing selenium tests in Python, I got used to using Explicit Waits a lot for waiting for a page to load, or for waiting for an element to become visible, or clickable etc: from selenium.webdr...

Previous Next