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.

2
votes
1answer
44 views

getText() which is in between <div> </div> tag?

Get text which are in between tags DOM <div id="div_ResultMessage" class="AlertmsgDiv"> <div id="lblSuccessMessage" class="alert alert-success alert-dismissable"> <div ...
1
vote
0answers
14 views

Code Coverage using Scala Automation Testing for JS web application

I'm looking if there's an existing application or tool that will run code coverage based on a scala implemented automation suite running against a Javascript web application. Our automation framework ...
0
votes
0answers
24 views

Interact with dynamic JavaScript menu object using Selenium WebDriver

The issue I'm having so far is that some of the menus are created dynamically using JavaScript and don't have any html tags to interact with the menu's in order to automate the clicking on the menu. ...
0
votes
1answer
37 views

Fetch paid Amount value from iframe

if(ScenarioName.equals("MoveinwithVantivCard")) { driver.findElement(By.id("btnsave")).click(); // driver.switchTo().frame("paymentIFrame"); driver.switchTo().frame(driver.findElement(By....
2
votes
1answer
37 views

how to open a firefox browser through selenium 3.6.0 with another profile using Javascript

I want to launch the Firefox browser through selenium-webdriver 3.6.0 with some of the default settings of the browser changed. Specifically, I want Firefox to download files, during automated testing,...
1
vote
1answer
37 views

How to automate software feature test coverage via tagging?

We are considering map software features against their respective automated test case to assess test coverage. The initial step is manually record all available software features The second step is ...
1
vote
1answer
37 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
291 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
136 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
484 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 ...
2
votes
1answer
81 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
1answer
222 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
480 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
62 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
45 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
580 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
44 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
25 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
2answers
76 views
2
votes
5answers
138 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
1answer
32 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
32 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
110 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
87 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
645 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
267 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
292 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
156 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
76 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
12k 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
162 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
37 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
4k 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
285 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
251 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
2k 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
116 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
551 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
266 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
96 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
244 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
4k 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
765 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
2k 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. ...
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
254 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
3k 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 ...