I put the tested application URL in a text file so I would like Protractor execution to wait without using “Sleep()” method until it finishes reading so Protactor can launch the browser to the website using the text from the file. But so far, Protractor executes so fast so it fails to get the text from the file so it
Tag: protractor
How to convert a value fetched from json file to a list in javascript
I have a string with comma separated values in json file and want to convert it to a list to iterate through for loop and click on each element.Please help me on this ! testdata.json : code: output : Answer I think the easiest way is to do it by parts, you can first remove the – using the split
If statement of a disabled button in Java Script for Protractor tests
I have the following issue: I have a page where the “Save button” becomes clickable only when I enter a certain value inside a text filed. What I want to do is to check that if the Save button is disabled, then I need to enter some value in that text field. What I thought is to have something like
Protractor / Jasmine timing out on headless chromium – Error: Timeout – Async callback
Hi all so I am trying to run headless chromium with protractor and jasmine. I have everything setup and working for both firefox and chrome with a head. When I run firefox headless it works… when I try running chromium headless it ends up timing out. Looking for some help to solve this problem. The error I get is :
Conditional test case in jasmine
I am writing Jasmine. I want that when the response from the site is ok (site uploaded- pending 200). Run the it’s (test cases) in spec and when the site is failed to load the site the it’s (test cases) will not run. I check the response from site in before all function. And now in each it that make
Protractor + Jasmine: Run same test in parallel with different data inputs
Wondering if there is a possibility to have a data driven tests with protractor + jasmine to execute it in parallel. I have the following: storeList.json – an array with input params to test individual store. We have around 40 stores – records. ordering.js – code (protractor) which takes each element from json above and executes it as separate test.
Protractor – ScriptTimeoutError: asynchronous script timeout: result was not received in 20 seconds
I’m new to Protractor and I am trying to run my script. But whenever I run it the browser opens up and proceeds to the website and then waits for 20 sec and I get Error: ScriptTimeoutError: asynchronous script timeout: result was not received in 20 seconds. The element is clearly there and can be clicked, however not for the
Protractor, with isDisplayed() I get NoSuchElementError: No element found using locator
In protractor 2.0, I am checking in a expect() if one element is displayed. I expect a false, but the weird thing is that I get following error: NoSuchElementError: No element found using locator: By.id(“userForm”) My code is: I understand that I get that error because element is not longer on the page (is what I want to confirm), but