Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

JavaScript is a dialect of the standardized ECMAScript programming language, primarily used for scripting web-pages.

0
votes
0answers
36 views

How to drag and drop the image using dragAnddrop() in javascript using selenium webdriver?

Without using test framework i have to write this test case to drag and drop to upload the image. please help me if any one know this stuff.If any framework is available also let me know please.
0
votes
1answer
41 views

How to upload an image selenium webdriver with javascript?

driver.wait(until.elementLocated(webdriver.By.css('div.border-right:nth-child(2)')), 1000) .then((element) => { element.click(); }); I am using java-script for my test cases. I had an issue to ...
0
votes
2answers
52 views

Javascript : click() method doesn't click the link

I have link with below properties on my Webpage: <li class="XXXX" title="This is test"> TestLink </li> I am trying with below code for clicking on above link with Javascript: var a = ...
1
vote
1answer
32 views

Webdriverio “And” command is not a function

So I'm using WebdriverIO with cucumber framework but I have encountered myself with the following situation: The feature file comes like this: Scenario Outline: Scenario Given situation A When I ...
0
votes
1answer
137 views

PROTRACTOR: Right click on link and open in NEW TAB

TestCase: Right click on link element and open in NEW TAB or NEW WINDOW. I could able to right click on the element using the below code . BUT NOT SURE HOW TO SELECT THE OPTION OF "OPEN Link in NEW ...
1
vote
1answer
27 views

How to know when “karma” test cases are run and reports are generated?

I have written unit test cases using Karma + Mocha + Chai and generated reports using karma-html-reporter. When the report got generated, I want to send the report to my team through mail. I need to ...
0
votes
1answer
37 views

Testing Failure Scenarios with Webdriverio

I may be approaching this the wrong way, but is it possible to mock http call failures (http status of 500) by intercepting a http request for a specific endpoint? I am trying to test a UI flow that ...
0
votes
1answer
15 views

Is it possible to use Microsoft UIA to automate sites designed in Angular?

I am trying to automate UI for a site designed in Angular and when I inspect the browser (Chrome) with UISpy.exe, I find that certain controls do not exist in the tree at all, even though I can see ...
2
votes
1answer
53 views
2
votes
5answers
107 views

Automation testing for UI Framework

I am writing unit testcases for a UI Framework using Mocha, Chai and Karma. I have analysed before whether to use selenium webdriver to do testing, but since most of the test cases involve working ...
0
votes
0answers
17 views

Alternative to browsershots.org for taking screenshots on multiple browsers on different platforms?

I'm working on a project where I have to test a javascript library's compatibility on mobile platforms in different browsers on the most recent versions of different mobile browsers. I have been long ...
1
vote
1answer
28 views

Strategies for reliably reproducing bugs in a frontend Javascript applications

The Problem We have a React JS application which sometimes exhibits issues on certain browsers or computers. Currently we are prelaunch and have no customers. We also do not have a dedicated QA ...
2
votes
1answer
62 views

Why isn't my 'if' statement working in my Cypress test

I'm trying to add an 'if' statement into my login test as there are two login pages that can be loaded. The test below is failing when it can't find the text 'Not your account?', when it should be ...
0
votes
0answers
38 views

using selenium with oracle JET applications

I am trying to write some python selenium scripts to automate testing of an Oracle Jet application. I used firefox's seleniumide to capture a testcase for the login page, but when I run the python ...
0
votes
1answer
164 views

How to reliably click bootstrap dropdown with no button element?

I am using Selenium to try and select an element in a bootstrap dropdown menu, but there is no button element present. The website uses all JavaScript to enable the dropdown. The HTML code for the ...
0
votes
1answer
139 views

javascript isPresent always returning TRUE (Protractor)

So, I am accessing an application. There are multiple employee records. However, there are no duplicate records. I am deleting an employee record and then trying to verify that the employee record ...
1
vote
1answer
129 views

How can i click on Save button to save a downloaded file using protractor in IE

How can i click on Save button to save a downloaded file using protractor in IE.
0
votes
0answers
52 views

Cucumber JS Step Definitions Coming Incorrect For Scenario Outline

Currently working with the .js port of Cucumber - CucumberJS. I am facing this issue where the scenario outline steps are not coming in the defined step. My Scenario is pretty simple Scenario ...
2
votes
1answer
71 views

Looking for a graphic tool to visually present testing coverage

I have been reviewing existing test cases. There is no easy way to visualise current testing coverage; the only way testing coverage can be assessed is reading through the test case repository, e.g. ...
31
votes
10answers
11k views

Why should a software QA engineer need to learn JavaScript?

I've seen in lot of job advertisements, companies asking for JavaScript knowledge for QA. So my questions are: What is the use of JavaScript for QA? If JavaScript is used for testing, what kind of ...
0
votes
0answers
63 views

Can't delete open gmail email with selenium 3.0? Can't click delete button with actions nor javascriptexecutor [duplicate]

I'm running into issue with deleting open gmail email with selenium click. It doesn't work and actions doesn't work either, because selenium 3.0 doesn't work with the actions class. So I used ...
0
votes
0answers
35 views

Selenium ( Webdriver Java script )for how should i fill all multiple text using single identifier?

I want to fill any registration form by using single identifier for all textbox, like Facebook/gmail sign up page ?
1
vote
6answers
2k views

driver.manage(…).timeouts is not a function

I'm using Node.js selenium-webdriver and I have this annoying issue. The issue is that the wait function throws an exception in console. var webdriver = require('selenium-webdriver'), By = webdriver....
2
votes
2answers
209 views

How to perform “front end unit testing” of Single Page Applications?

"Front-end Unit Testing": To test the client side validations from front-end UI tests but in isolation(hence calling unit tests). By isolation mean, testing static HTML pages to avoid unnecessary ...
0
votes
1answer
96 views

Protractor - How to extract a link from HTML string?

In one of my test cases, I'm able to get the entire HTML e-mail message sent to a user. The message contains text, button, a link, etc. My Issue is that I need to extract the href link in order to ...
1
vote
1answer
888 views

How to make a variable in `protractor.conf.js` available in spec file?

I have a variable in protractor.conf.js which is exported within onPrepare() function as: global.myVariable = myVariable, and in spec file I'am trying to use/call it, but it seems that it can't be ...
1
vote
1answer
80 views

How to highlight the particular text in a tag and format the text (like Bold, Italic and so on) using Robot Framework

I have a text in div tag as "Robot Framework tutorials" I wanted to highlight only "Robot" and mark it as bold using Robot framework. Can anyone help me how to highlight the text ?
-1
votes
4answers
271 views

Selenium, unable to locate xpath or form name [closed]

I'm trying to locate a form, but the application doesn't have form names. I tried: driver.findElement(By.xpath("html/body/div/div/main/div/div[2]/div/form")); driver.FindElement(By.XPath("//input[...
1
vote
1answer
173 views

Writing tests for a complex Polymer SPA (single page application)

I have a pretty complex Polymer Single Page Application. It has things like Facebook login, online ordering via credit card, as well as user profiles, image uploads, services offered, real-time chat, ...
1
vote
2answers
75 views

Use selenium webdriver with customized web tags made with web components

Currently in my test case I need to write tests to be able to find elements of the customized variety made using web components, example of the html code is below: <html> <head>...</...
4
votes
2answers
208 views

How to utilize javascript asynchronicity to speed up test execution?

How to utilize javascript asynchronicity to speed up test execution in protractor tests other than running tests in parallel? **Note:**This question is about utilizing core features of JavaScript ...
0
votes
2answers
2k views

Get current time in HH:MM format

How to get the current time and send it in HH:MM format in a field to schedule an event at the current time using Protractor?
1
vote
1answer
475 views

How to get List of similar elements using javascriptexecutor using selenium webdriver

I want to get list of similar element into arraylist using javascriptexecutor. However able to store only single element using javascriptexecutor. Here is my code: JavascriptExecutor js = (...
3
votes
1answer
1k views

PROTRACTOR:How to tell protractor to stop or skip the TEST if any Test case is failed

Current Behavior: If any TestCase is Failed, Protractor not continuing with the next Testcase and holding to the same failed Testcase . Waits for long time and throws A Jasmine spec timed out. ...
0
votes
0answers
364 views

How to verify whether the pop up window is displaying or not using protractor?

I tried below codes but everything fails , even though the pop up window is displaying still the expectation is giving false result. page.get_Sent_Reference_Icon().click(); handlePromise = browser....
1
vote
1answer
1k views

Running Protractor tests from Jenkins

Usually, I used to run from command line (protractor config.js). I used protractor and java script. PLS LET ME KNOW STEPS TO ACHIEVE RUNNING FROM JENKINS To run from Jenkins , I created a batch file ...
2
votes
0answers
194 views

Can't swipe open Ionic ion-menu with Protractor

We have this Ionic3 ion-menu (hidden left side slide-out menu) which we have to swipe it open to the right so that it shows. On Chrome with the click of the mouse it can be easily done. But can't make ...
1
vote
2answers
1k views

Unable to click on dropdown element using for loop [closed]

I wrote a for loop code that can access a dropdown list. I'm able to print the list but the code is unable to click on the specified option public void userCapturesAccountDetails() { WebDriver ...
2
votes
2answers
330 views

Protractor: Specified suite is not running .Instead all suite inside Suites(config.js) is running

Test Case: I wanted to run only one suite (eg) suite 'A'. So i specified the same while running configuration protractor conf.js -- suites A Problem: All Suites (A,B,C,D) are running, instead of ...
4
votes
2answers
175 views

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

I don't believe any other Selenium-compatible language supports promises which seems like a game-changer when it comes to dealing with waits. Since no other Selenium-compatible language supports this,...
1
vote
1answer
346 views

Is there a way to setup WebStorm to execute Javascript/Protractor code in place using Evaluate Expression tool?

I'm coming from a Java+Selenium environment, so maybe this is a mismatch of understanding that I'm having with Javascript/Angular/Protractor. I used to use IntelliJ's IDEA IDE for automation testing. ...
2
votes
0answers
299 views

How to expand upon the error from a Jasmine expect failure?

I'm using Jasmine, FrisbyJS, and Jest to create API tests for my team's product. I want to be able to handle when an expect (which I'm pretty sure Frisby is just using the underlying Jasmine expect) ...
0
votes
1answer
1k views

Why am I getting “RangeError: Maximum call stack size exceeded” when I try to run FrisbyJS tests with Jest?

When I try to run my frisbyjs tests with jest as documented on the github page, I get the following error: RangeError: Maximum call stack size exceeded at String.slice (native) at Object....
0
votes
1answer
421 views

How to store a generated link as a variable in protractor

Enabling certain options on a page will generate a link that I need to store. The link is located in the page object file by element(by.css('a[href*="link"]')); I need to figure out how to store ...
3
votes
1answer
316 views

Should I use Jasmine/FrisbyJS or Mocha/Chai for testing of live API with Angular?

What I'm looking for in an answer Concrete relevant(newer?) examples of why one choice is better than the other OR, a concrete suggestion of why using a different language is the better choice over ...
-1
votes
1answer
56 views

How to write a java programme to find unique patterns by removing duplicates for API urls?

How to write a java program to find unique patterns for API URLs? Note: I have a file which contains 10000 API URLs with duplicates api.csv: http://abc.com/XMLFeed?clientkey=abtc&type=Products&...
1
vote
1answer
704 views

PROTRACTOR: How to Run Few Spec on firefox browser and few spec on Chrome browser?

I have 10 test cases, In which first 8 test cases should run in Chrome browser and next 2 test cases should run in Firefox browser. I have tried below code: in conf.js var jasmineReporters = ...
3
votes
2answers
4k views

How to handle windows authentication pop up with Protractor?

Use case: When URL loads, it request for Windows authentication (Enter Username and Password). How it goes is: loads the url on clicking Post button in the page. Windows Authentication pops up ...
1
vote
0answers
1k views

WebdriverIO browser.scroll() always scrolls to the top?

I am using WebdriverIO and I want to scroll to an element. But no matter if I'm using element.scroll() or browser.scroll(0,yLocation) it will always scroll to the top of the page. Is it possible ...
1
vote
1answer
803 views

How to verify column count using protractor

I need to verify the column count of a table based off of the security role of the logged in user. How can I verify that in some instances 5 columns are displayed but in other instances 4 or 3? The ...