As of May 31, 2023, we have updated our Code of Conduct.
51 votes

Why should a software QA engineer need to learn JavaScript?

Well, apart from the obvious answer like "QA engineer should learn JavaScript to be able to use TA frameworks which work with JavaScript" I would say that a QA engineer should learn JS because knowing ...
Alexey R.'s user avatar
  • 11.5k
14 votes
Accepted

Why should a software QA engineer need to learn JavaScript?

To answer your questions: 1: What is the use of JavaScript for QA? UI Testing of web pages, when the UI is written using JS-based UI front-end frameworks like Angular and friends as is the current ...
Peter M. - stands for Monica's user avatar
13 votes

Why should a software QA engineer need to learn JavaScript?

One of the reasons would be to write end-to-end automated tests using Protractor. Protractor is an end-to-end test framework for Angular and AngularJS applications, where you write tests in javascript....
mdymek's user avatar
  • 469
10 votes

I want to learn Selenium but not sure about the language I need to learn for automation

See, you can learn Selenium with any language, whether it is C#, Java, Ruby, Python etc. It doesn't matter whether the application you are going to test has been developed in the same language that ...
Dhiman's user avatar
  • 4,580
9 votes
Accepted

Data driven testing using csv in Protractor

Hi i found another csv module : csv-parse : https://csv.js.org/parse/ (Its used in postman) const parse = require('csv-parse/lib/sync'); Use this module for data-driven testing instead of below-step ...
PDHide's user avatar
  • 10.9k
9 votes
Accepted

How to approach setting up test data for a project that has a microservice architecture?

Depending on how those microservices interact with each other there may be several possibilities. The whole microservices concept was created to allow microservices to be developed/tested/deployed ...
Alexander Pushkarev's user avatar
8 votes
Accepted

Speeding up end-to-end tests

I discovered the following points while speeding up my protractor(selenium) tests: Run tests in a headless browser(from version 59, chrome can be run headless natively) Run tests as direct ...
Vishal Aggarwal's user avatar
6 votes

I want to learn Selenium but not sure about the language I need to learn for automation

I am assuming that you: want to become competent programmer, with goal to learn programming beyond Selenium automation. have nobody around to ask for guidance (if you do, ask locally) also want to ...
Peter M. - stands for Monica's user avatar
6 votes
Accepted

Detecting complicated CSS selectors

What parameters would you consider to determine if a CSS selector is resistant to a change? What makes a reliable CSS locator? Some factors I would consider: To start with, the basics are: ...
Michael Durrant's user avatar
6 votes

Xpath for sign out button

There are much better ways to locate the element aside from using XPath, don't focus on XPath too much - this is, generally speaking, the slowest and the least readable way to locate elements. I ...
alecxe's user avatar
  • 11.4k
6 votes

Why should a software QA engineer need to learn JavaScript?

I think the basic question should be "Why a software QA engineer should learn programming". Which programming language to learn is not important, it can always change. As a QA Engineer, you can work ...
return's user avatar
  • 445
6 votes
Accepted

How to verify response body as a test in postman

As @Mache says, you search for each value. var jsonData = pm.response.json(); pm.test("Verify Json values", function () { pm.expect(jsonData.data.id).is.to.equal(2); pm.expect(jsonData....
Decypher's user avatar
  • 242
6 votes
Accepted

Can developers easily add IDs to a React app?

No, that's not true at all; you can definitely add your own id attributes to elements rendered in React components. id is listed as a supported DOM attribute in the docs. Yes, in cases where ...
jonrsharpe's user avatar
6 votes
Accepted

Playwright: Printing Console Logs each time when one of the test fails

Browser console message/errors can be listened like below at runtime: const playwright = require("playwright"); (async () => { const browser = await playwright.chromium.launch(); ...
Vishal Aggarwal's user avatar
5 votes
Accepted

Why should we use javascript for UI test automation?

Yes - For Unit Testing Javascript I've been working with this concept over the last few years and I've come to the following, multi-tier approach: Unit testing on the backend. For example with Ruby ...
Michael Durrant's user avatar
5 votes
Accepted

Switching from JavaScript to TypeScript for Protractor e2e tests

The nice thing of TypeScript you do not have to migrate at once. TypeScript is a superset and can parse plain JavaScript as well. You can keep your old code and start using TypeScript for new code or ...
Niels van Reijmersdal's user avatar
5 votes
Accepted

End-to-end tests are running for 5 hours

A few things to consider come to mind: Only run in Chrome Controversial huh? Let me explain more fully though. My question for multi-browser and indeed multi-device (responsive web sites) testing ...
Michael Durrant's user avatar
5 votes

Why should a software QA engineer need to learn JavaScript?

With the popularity of JS Frameworks like Angular, React, Nodejs, there has been a surge in the testing frameworks using JS- be it an E2E framework like Protractor, Nightwatch, Cypress or API testing ...
demouser123's user avatar
  • 3,532
4 votes

I want to learn Selenium but not sure about the language I need to learn for automation

There are two sides of your question which I am interpreting (and may be I am wrong), but this is how I see it : You can choose your language based on the ease of learning. You can choose your ...
demouser123's user avatar
  • 3,532
4 votes

Correct CSS selector for selenium

If your edit class is unique on the page, then you can do .edit If you need to be a bit more specific, you could do more along the lines of .active.editing input.edit The point is, theres no "right" ...
Julian's user avatar
  • 884
4 votes
Accepted

Selenium: how to wait for javascript fadeout (visibility and clickable don't work)

Instead of waiting for your element, try to put wait for the invisibility of previous element. Like try the below code: WebDriverWait wait = new WebDriverWait(driver, 100); boolean waitUntil = ...
saurabhguptacse's user avatar
4 votes
Accepted

Usage of javascriptexecutor in automation test scripts

Your test is supposed to reproduce the user behavior as close as possible, but you are calling the method attached to the button rather than clicking the button. So it kind of defeats the purpose of ...
Florent B.'s user avatar
4 votes

Why should we use javascript for UI test automation?

We have recently started with writing WebDriver tests in JavaScript and I have to agree that the asynchronous execution is adding an unneeded complexity. Pro's: Same test-runner as other (front-end) ...
Niels van Reijmersdal's user avatar
4 votes

Why should we use javascript for UI test automation?

As you mention, the asynchronous chaining API seen in "selenium-webdriver" NPM package and also in nightwatch, protractor, testcafe, cypress, intern and wd.js etc can be quite hard to understand. ...
molsson's user avatar
  • 141
4 votes
Accepted

How to find Scroll bar xpath?

You can't. Scrollbars are part of the browser and not the HTML document. This means you cannot control them unless it isn't a real scrollbar (one that is created with HTML+JavaScript). ScrollBars are ...
Niels van Reijmersdal's user avatar
4 votes

Rerun failed (flaky) tests with Jest

We recently switched from mocha to jest and in the process came across a flake which appears to due to a bug in react. Given the difficulty we had in investigating this issue and that it should be ...
jayrobin's user avatar
  • 141
4 votes

How to profile end-to-end tests to find the slow ones?

From your test framework or from logs, first identify the slow ones. Debug each test (single stepping) to determine which area is slowest. Identify if it's client or host related, backend, frontend,...
John Peters's user avatar
4 votes

Switching from JavaScript to TypeScript for Protractor e2e tests

NO. I would not suggest doing so until you have a specific objective to be met by doing it. In my opinion, its only worth the effort if you are working on large development project but for ...
Vishal Aggarwal's user avatar
4 votes

Does WebDriverJS/WebDriverIO promises make javascript the language of choice for Selenium?

TL;DR: convenience of programmers not the only deciding factor when selecting the implementation language. Promises are necessary when programming page events and response to asynchronous AJAX calls. ...
Peter M. - stands for Monica's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible