2022 Developer Survey is open! Take survey.
49 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 ...
user avatar
  • 11.4k
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 ...
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....
user avatar
  • 469
11 votes

Why should a software QA engineer need to learn JavaScript?

The more you learn about the technologies your developers use, the better you will be at your job, and the more valuable you will be. In other words, even if you never write a line a JavaScript for ...
user avatar
  • 22.8k
10 votes

Not able to scroll down page using Selenium webdriver

Please use below code. driver.get("http://www.flipkart.com/"); driver.manage().window().maximize(); driver.findElement(By.linkText("Trimmer")).click(); WebElement scroll = driver.findElement(By.id("...
user avatar
  • 510
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 ...
user avatar
  • 4,530
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 ...
user avatar
  • 10.8k
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 ...
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 ...
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 ...
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: ...
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 ...
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 ...
user avatar
  • 445
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 ...
user avatar
5 votes
Accepted

How to output result of Javascript execution to console?

You need to tell it to return the value. Change this line: String mainURL = (String) js.executeScript("productObj.mainURL"); to: String mainURL = (String) js.executeScript("return productObj....
user avatar
  • 8,419
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 ...
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 ...
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 ...
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 ...
user avatar
  • 3,520
5 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....
user avatar
  • 232
4 votes

Include assertions/expectations within the Page Objects, yes or no?

Given that there is disagreement, the answers this question attracts will probably gravitate toward sometimes rather than yes/no. My opinion is that page objects should have assertions in their ...
user avatar
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 ...
user avatar
  • 3,520
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" ...
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 = ...
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 ...
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) ...
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. ...
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 ...
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 ...
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,...
user avatar

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