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

learn more… | top users | synonyms

4
votes
3answers
72 views

How can we generate unique distinct users for parallel tests with selenium?

How can we generate unique distinct users for parallel tests with selenium WebDriver and java or Javascript. Suppose, in google create an account action I have to pass firstname, lastname, username ...
0
votes
1answer
22 views

Anyone find value migrating to NightWatch from Python Selenium API?

My dilemma, I have tons of tests and experience on the Python API to Selenium and webdriver. But, my dev team is big time javascript fans who think everything should be built under node/js. I want to ...
0
votes
1answer
61 views

Switching windows with non angular pages using Webdriver JS

I have a non angular page that I open and then click a link, which changes pages and I fill out a form with some information and then click a button. Upon clicking that button another browser window ...
1
vote
1answer
45 views

How to click on the hidden values in selenium webdriver using java?

I am trying to click on one of the hidden values but it is neither fetching nor it clicking on that value. I am trying for Indian railways berth availability wherein I want the source station value ...
0
votes
1answer
62 views

How can I execute selected test cases from list of testcases in TestNG at runtime?

I want to create a page with the details of test cases (say a HTML Page with some content). Say the testcases will be listed there. When i want to run the test cases then I will select them and click ...
0
votes
1answer
43 views

Unable to click on javascript element through selenium driver

I am using given below xpath but my script is not clicking on these element Login_Btn = "(//a[contains(text(),'Login')])[2]"; OR "//div[@id='bd_login']/a" ; ...
0
votes
0answers
18 views

How to calculate DOM size in web application using chrome profiler?

I am doing performance testing of a single page web application.How to calculate DOM size in web application using chrome profiler?
0
votes
0answers
10 views

Script Progression Status on browser

Is there any method available to get status of script execution(passed/failed) on the current browser window itself? e.g.May be a JavaScript popup after script completion or script waiting pop up when ...
0
votes
0answers
34 views

Could not click the upload button for SafariDriver

There is a upload button on the website as the code below <div class="fileUpload btn btn-primary"> <span>Upload</span> <input class="upload" id="id_file" name="file" ...
1
vote
3answers
50 views

How to take the screenshot of a window based GUI application?

I am automating tests of a GUI application similar to calculator. I am using Java and AutoIt for implementing the test cases. I need to take screenshot on failure. I have tried taking screenshot ...
0
votes
0answers
80 views

How to enter text in a javascript field using python selenium

I have a address input text field on website which is basically auto populated by ajax request. This is not a drop down field through which you can select some value, neither you can input your own ...
1
vote
0answers
26 views

waitForCondition class change

I'm having an issue with a menu which needs a double click to activate the main option. The first click adds 'focus open' classes to get the ui to open the hover over menu in mobile, the second ...
2
votes
3answers
117 views

Correct CSS selector for selenium

Which css selector's correct for the following HTML code ? <li class="active editing" data-index="0"> <div class="view"> <input class="edit"/> </li> I'm trying to get ...
1
vote
1answer
41 views

How can I move all my seleniumIDE locators to javascript variables (like page objects)?

My locators are all hard-coded into the tests. How can I extract these into variables?
2
votes
3answers
82 views

What tools are recommended for end to end page load time testing (including ajax and styling elements)?

We are looking to measure the length of time it takes for certain key pathways to become 'usable' e.g. certain styling elements will have loaded in and some information ajaxed in on a page. Ideally ...
0
votes
0answers
50 views

Custom Reporting Selenium 2 Using Javascript

I'm using selenium-webdriver and javascript to create test. Now I want to count test execution time. I know someone had been ask this question How to generate a report for test case in selenium ...
0
votes
0answers
67 views

search string text in search grid is not working using send keys

I am passing sendKeys( ) through search grid to search a particular string.I am able to click that search text but its not clicking the search string ,Below is the html for that search text: ...
6
votes
5answers
2k views

I want to learn Selenium but not sure about the language I need to learn for automation

Java or Javascript? or maybe another language? Please help me choose the programming language I should learn for Selenium automation and its benefit over other. Any pro's and con's?
1
vote
2answers
236 views

Unable to handle iFrame in Selenium

I'm trying to access iFrame <iframe id="frame1" style="width: 100%; height: 100%; display: block;" tabindex="100"> <html> <head xmlns="http://www.w3.org/1999/xhtml"> ...
3
votes
2answers
457 views

IDE: [error] Threw an exception: missing ; before statement

I keep getting errors with my storeEval script. In IDE the log keeps giving me "[error] Threw an exception: missing ; before statement". I don't know what to do because I have tried putting a similar ...
2
votes
1answer
194 views

Automating Chrome on Windows 8.1 with JavaScript using Selenium's WebDriverJS

I'm automating Chrome on Windows 8.1 with JavaScript using Selenium's WebDriverJS. 1) To get started with WebDriverJS for Node, I downloaded a copy of the ChromeDriver and selenium-server-standalone ...
2
votes
1answer
1k views

How to 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 ...
1
vote
3answers
1k 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 ...
1
vote
2answers
62 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
591 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
1
vote
1answer
259 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
54 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
302 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) { ...
1
vote
1answer
1k 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.
1
vote
2answers
4k 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, as up to now I am not using any reporting tools. Now I have decided to use a reporting tool. Please suggest me best ...
1
vote
3answers
588 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
2k 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
269 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
35 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
292 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
319 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
2k 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
109 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 ...
4
votes
1answer
1k views

What Is the Best Way To Mock Browser Time and Time Zone in Selenium?

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
395 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 ...
1
vote
2answers
976 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
1answer
149 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 ...
2
votes
5answers
24k views

Not able to scroll down page using Selenium webdriver

I want to scroll down a page that is coming inside a form, not on the main page. I tried this code: JavascriptExecutor jse = (JavascriptExecutor)driver; jse.executeScript("window.scrollBy(0,250)", ...
0
votes
2answers
3k 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
550 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
53 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 ...
2
votes
5answers
348 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
669 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 ...
2
votes
1answer
4k 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
43 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 ...