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

learn more… | top users | synonyms

0
votes
0answers
6 views

kendoComboBox shows value injected through javascript but it does not save after saving the form

As shown in screenshot kendoComboBox gets values from dropdown as you type 3 characters in it. I executed below script to input value through JavascriptExecutor. Supplier1 = ...
1
vote
1answer
57 views

Handle the File Upload dialog in Protractor for IE11

I know the default answer to handling explorer.exe is to use AutoIT, but AutoIT utilizes Java Runtime to use the exported .exe to upload the file and close the dialog. My tests are all in Protractor ...
0
votes
3answers
74 views

Stress and Load Testing using Selenium-like tool

I have written some tests in Selenium using NodeJs and I am looking for a way to use those tests for stress testing web apps. Is there any tool that combined with selenium can do the trick? What I am ...
0
votes
1answer
12 views

Windows Phone 8.1 metro JS app testing

I started work as junior QA and after 2 months of manual testing my boss told me to learn about automation. The problem is that I should test app which has been written in JavaScript for Windows ...
0
votes
1answer
85 views

How to validate maximum character check in webdriver/java

I want to validate the maximum character limit of the text field in webdriver/java
0
votes
1answer
22 views

JSON Assertions in CA LISA

Has anybody tried scripting json response assertions in CA LISA Tool. All I could find was string match where I was giving "key":" value" exactly to ensure the presence of that combination in my web ...
0
votes
1answer
35 views

How to check when self.close(); executed or not in java?

the code is self.close(); some times the window is closed and sometime it doesn't closed and not throwing any popup or alert. So i wanted to check whether the window is closed or still open? How it ...
0
votes
1answer
46 views

How to test that pressing <enter> on an HTML input element causes the form to submit

Suppose you have: <form> <input type="text" id="tbInput" text="foo" /> </form> It turns out somebody wrote the following code: $("#tbInput").on("keypress", function (e) { ...
0
votes
1answer
36 views

How to generate HTML report with Mocha?

If anyone knows any examples for generating an html report in the Mocha framework, please share it. I have done googling and tried a lot but I have not been successful.
0
votes
1answer
330 views

How to generate a report for test case in selenium webdriver using javascript

I am working on selenium webdriverjs , Now I want to know about reporting tools upto now I am not using any reporting tools . Now I am decided to use reporting tool , Please suggest me best reporting ...
0
votes
3answers
103 views

How to automate Mouse hover action in webdriver/java/kendo ui

I just want to automate mouse hover function for my project the scenario is Scenario : There is a text box, if i hover on it,the edit icon will enable and i have to click that icon.
0
votes
1answer
275 views

Sometimes can't able to select the options from drop down webdriver/java [duplicate]

I can able to activate the drop down and able to select the value from it sometimes but sometimes i can't able to select the option for the drop down and i am facing an timeout error. Code: ...
0
votes
2answers
66 views

how to check check box and getting whether checkbox is checked in javascript selenium

how to check check box and getting whether checkbox is checked in javascript selenium and node. I tried using .click on the element also tried using native javascript code to do that.but nothing ...
1
vote
0answers
24 views

Play current test case button stops working after custom function called

I have a really strange error occurring when using Selenium IDE and that is when this function is called, any attempts to use the Play Current Test Case button no longer work ...
3
votes
1answer
159 views

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

Martin Fowler favors having no assertions in page objects however is not definitive on the subject: Advocates of including assertions in page objects say that this helps avoid duplication of ...
1
vote
0answers
132 views

Page Object Design: Is there a Javascript equivalent to Ruby gem “site_prism”

I'd like to know if there is a framework in Javascript (NodeJS) for Protractor which supports a clean way to define the Page Object Elements on a Page Object as site_prism does. I've already checked ...
0
votes
1answer
275 views

How to output result of Javascript execution to console?

I was wondering if anyone could help me find a way to output to the Eclipse console the results returned from executing a Javascript ? These are the steps I manually perform (that I would like to ...
1
vote
1answer
43 views

Unit testing client-side Javascript without the browser

I asked this question on the stackoverflow site: http://stackoverflow.com/questions/27469850/has-client-side-javascript-unit-testing-gotten-lost ...but I think it's a little to open ended. So ...
2
votes
1answer
248 views

Selenium - What Is The Best Way To Mock Browser Time and Time Zone?

I like to run Webdriver tests with altered time and time zone. I see two approaches ahead: 1.) Using a mocking library like SinonJS or TimeShift.js. 2.) Using system libraries like ...
1
vote
1answer
191 views

how can i get all the dropdown values in a list

I want all the options which are there in a dropdown .I am using selenium + javascript to write the testcases Please let me know how to get all the options from the dropdown i know in java we can ...
0
votes
0answers
65 views

how to run a test script in a different browsers by using selenium webdriverjs and mocha framework

I'm new to webdriverjs , please help me how to run same single script in multiple browsers one by one by using the selenium using with javascript + mocha framework
1
vote
1answer
283 views

Unable to open Chrome WebDriver in another language

I'd really like to write a Selenium WebDriver test that verifies text is localized. The localization code bases the strings it displays on navigator.language (or navigator.userLanguage for IE). I ...
0
votes
0answers
57 views

Javascript code coverage for manual tests

I am looking for Javascript code coverage tools for manual tests? I tried JSCover (proxy mode) and it didn't work for me. I want to run end to end manual application tests. Since, the bulk of the ...
0
votes
1answer
108 views

automating selenium 101

I'm just getting started with selenium: package selenium; import java.util.List; import java.util.concurrent.TimeUnit; import java.util.logging.Logger; import org.openqa.selenium.WebDriver; import ...
1
vote
2answers
8k views

want to scroll down page/form using selenium webdriver

I want to scroll down a page that is coming inside a form, not in the main page. I tried this code JavascriptExecutor jse = (JavascriptExecutor)driver; jse.executeScript("window.scrollBy(0,250)", ...
0
votes
2answers
627 views

Can you use javascript with selenium webdriver?

I want to automate a website with selenium web driver using javascript. I am good at Junit(java) but not an expert in javascript. please can anyone help me rewrite this little code snippet in ...
0
votes
2answers
208 views

Accessing a sub menu within a sub menu using Webdriver with python on IE8

I have been trying for a while to complete this task. For context, I have a link called with text "Main Menu" along the top of the page, that when hovered reveals a list of more links. These links ...
1
vote
1answer
43 views

Unresponsive scripts search

I am searching for tool or rules set for searching of unresponsive (or slow) scripts(I guess JS in most cases). Of course it could be browser dependend, coz some unresponsive script in firefox work ok ...
1
vote
5answers
251 views

Lightweight load & performance testing frameworks

Which lightweight load and/or performance testing frameworks could you recommend? some considerations: Configuration with not too much coding (some JS would be okay) command line + text editor ...
0
votes
1answer
205 views

How to access a dynamically created element

I am using Watin to test a website. It contains a div which is created dynamically on clicking a tablecell. How can I access the dynamically created div. The issue is the div is deleted after a short ...
1
vote
1answer
3k views

Selenium IDE Store variable in Javascript of Page

I am attempting to inject Javascript directly into a page in order to set a variable for the page. I am still rather new to the IDE and I have seen the runScript function and I think it does what I ...
1
vote
0answers
42 views

Someone added a JavaScript alert() to my site [closed]

I went to my site to notice that as soon as I go to it, 2 seconds later an alert(1); pops up. It only shows the 1. After 1 -2 clicks of OK, it redirects to another site. How could this have ...
2
votes
6answers
2k views

Which automation tool needs JavaScript or JQuery to be used more?

I have started off my career in manual testing and an automation tool rarely. I would like to concentrate more on automation testing. I believe I have the object-oriented concepts in a good manner. I ...
0
votes
2answers
2k views

SeleniumIDE Issue - js alert() is not detected by IDE

SeleniumIDE Issue - js alert() is not detected by IDE These steps will reproduce the problem: Open http://www.w3schools.com/js/tryit.asp?filename=tryjs_alert2 Click on the "try it" button The ...
1
vote
1answer
344 views

Access the DOM of a PDF using WebDriver and FireFox's built-in PDF viewer

I'm trying to use FireFox's built-in javascript PDF viewer with WebDriver so I can access the DOM of a PDF. However, FireFox has an Adobe plugin which takes over and displays the PDF. Whatever ...
0
votes
1answer
90 views

What are some typical javascript, HTML and AJAX issues that I should write test cases for?

HTML rendering, Javascript and AJAX plays an important role in the development of modern web applications. How significant is JavaScript when designing test cases for a website that uses it? What ...
1
vote
0answers
473 views

Handling Alert box on page load [closed]

Is there any way to identify the JavaScript alert box (on page load) in selenium IDE? I used commands like "storAlert", "assertAlert" etc. But selenium not identifying alert box.
0
votes
1answer
422 views

Framework for testing Dojo

I need to automate tests for Liferay portal with portlets on JavaScript. I am going to try several frameworks before implementing tests. For now, I am considering D.O.H. and Selenium Webdriver. ...
4
votes
5answers
10k views

WebDriver: Can I inject a jQuery script for a page that isn't using jQuery?

Is it possible to inject a jQuery script into a page if the page isn't already using jQuery? We have a few pages in our sites where we don't add jQuery if it doesn't need it, but I'm using it to ...
3
votes
1answer
1k views

Inconsistent results when capturing javascript errors with WebDriver

I'm using a technique I found here, to capture javascript errors for testing purposes. It's a technique that is frequently recommended on Stack Overflow for those who need to catch JavaScript errors ...
1
vote
2answers
2k views

split stored value using JS in selenium IDE

I am trying to use js split in one of my tests. I need to store a url and save the last part of the url in a log file. I have stored the url successfully but I can't get the slit to work. So far I ...
2
votes
1answer
908 views

Is there a way to disable a JavaScript function of the tested application from Selenium WebDriver automation project?

I need to disable a particular JavaScript function of the main application for which I am creating automated tests using Selenium WebDriver. Is there a way to do this?
5
votes
2answers
118 views

Is there some published JavaScript with a list of 'interesting' test strings?

I went looking on the Google for a simple JavaScript object or other bit of JS code that can deliver a list of strings that are interesting for testing. I thought there would be a billion hits, but I ...
3
votes
2answers
2k views

iOS UIAutomation UIAElement.isVisible() throwing stale response?

I'm trying to use isVisible() within a loop to create a waitForElement type of a function for my iOS UIAutomation. When I try to use the following code, it fails while waiting for an element when a ...
11
votes
3answers
3k views

What are some tools for fuzz testing?

Fuzz Testing as defined by Wikipedia is: a software testing technique, often automated or semi-automated, that involves providing invalid, unexpected, or random data to the inputs of a computer ...
6
votes
2answers
561 views

Behaviour Driven Development with JavaScript

Are there any approaches and tools for driving the development of JavaScript with BDD. I know that I can do this through the UI with tools like Selenium, but is there any tool that can allow this to ...
7
votes
4answers
1k views

Headless Functional Testing For Your JavaScript Web App?

JavaScript is everywhere right now. With the advent of jQuery and other associated JavaScript frameworks it's amazingly simple to add very powerful user interactions to web sites and web applications. ...