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

Questions tagged [javascript]

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

1
vote
1answer
29 views

How can I bypass the mixed content error

I am getting the below error when I was trying to approve a document in a webpage Mixed Content: The page at \'https://example.com\' was loaded over HTTPS, but requested an insecure resource \'http://...
2
votes
1answer
52 views

How to use async/await with Protractor-nodejs8

I am completely new to protractor, and I came across the async/await. Is it necessary to use async/await in all your script. And how to use with page object. Using node version 8.9.4 protractor ...
0
votes
0answers
6 views

QUnit stubbing out methods on a dependency breaks tests against that dependency

In Google Apps Script, I'm unit-testing an app that I'm working on, using QUnit, using test-driven-development. The code under test I am, right now, working on fully testing, and then developing, ...
1
vote
2answers
41 views

Protractor: Iterate through table <td> and click the link by TEXT

Requirement : link is present inside tabel >td>p>a . i want to Click link the link by TEXT (something like contains(Text)) Tried : by.CssContainsText("a","Text") . did not work, as multiple entry ...
0
votes
2answers
77 views

How to wait for JavaScript scroll action to finish in selenium?

I've come across an interesting problem while automating our web application using selenium webdriver. I'm waiting for page load and all the ajax call to finish but the application use JavaScript ...
1
vote
1answer
30 views

ElementArrayFinder.filter() - how does it work under the hood?

In my UI, I have a project tree that contains a list of components that are in a project. Once my current spec is done running I'm calling a page object function to delete all the components to clean ...
2
votes
1answer
78 views

Unable to get failed status if script is stopped or element is not clickable getting all test pass

I'm Unable to get failed status if the script is stopped or element is not clickable getting all test pass how & what assert should I apply to get this resolved please help me package ...
0
votes
0answers
138 views

How to simulate onclick using Selenium/Python

I am using Python/Selenium to click on an icon on a web site to add it as one of my condition. It's making a Javascript call. I've tried find_element_by_css_selector and execute_script but was unable ...
0
votes
1answer
131 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
2answers
183 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
58 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
38 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
382 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
29 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 ...
1
vote
1answer
43 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
19 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
61 views
2
votes
5answers
122 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
18 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
30 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
75 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
59 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
396 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
202 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 ...
2
votes
1answer
222 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
103 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
73 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. ...
32
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
113 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
3k 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
253 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
174 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
1k 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
92 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
396 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[...
2
votes
1answer
225 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
88 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
228 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
3k 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
615 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 = (...
4
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
401 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
2k 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
214 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
2k 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
498 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
193 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
383 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
371 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) ...