w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Protractor test cases are failing on Jenkins server but they pass on Local machine: Error: Element is not clickable at

I have found the solution.

Test cases are working fine on jenkins now after making some changes in the test cases. I think the problem was, once the focus is at the bottom of the page it was not going up automatically to click on the element, I restructured the test cases in such a way that my list will not be too long and focus will not go at the bottom of the page. Also, I am resetting the window size before every test case by using below line of code in beforeEach function:

beforeEach(function () {
    ptor.ignoreSynchronization = true;
    browser.driver.manage().window().setSize(1280, 1024);

I am not sure whether my assumptions are correct and resolution will work for everyone but its working fine for me. you may want to give a try and see.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.