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

learn more… | top users | synonyms

2
votes
2answers
1k 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 ...
5
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 libfaketime/...
2
votes
1answer
220 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
2k 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 ...
0
votes
1answer
20 views

How do I check if a tooltip appears or not?

How do I check if the tooltip appears or not in selenium? When mouseovering the element, I can see the tooltip appear. How do I verify that the tooltip appears? HTML of the Icon: <td class=" ...
0
votes
1answer
18 views

Protractor Dynamic numer of test runs depened on count() result

In my Protractor Test suite I have some problem with parametrizing number of tests . it('Login and Count', function () { PageObject.login(); var number = element.all(by.something()).count()....
0
votes
1answer
94 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 ...
-1
votes
1answer
59 views

Selenium Testing

I have resetVal() function in javascript as given below. I am unable to figure out how to write selenium test case for reset values. <script> function resetVal(){ document.getElementById("...
2
votes
0answers
36 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 Selenium.prototype....
1
vote
0answers
27 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 ...
1
vote
0answers
338 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
0answers
21 views

Tools for automated testing of web site in JavaFX WebView

Automated testing of web site in JavaFX WebView I have a Web Site, for which I have to write automated tests. The WebSite is built with the following technologies: HTML, CSS, Js, AngularJS. The major ...
0
votes
0answers
23 views

how to automate Codmirror textarea through javascript or selenium

Not able to find the element through xpath ((//td[text()='Field On Change Script']/following::div[@class='CodeMirror-lines'])[1]/descendant::div)[last()] HTML code of textarea <tr valign="...
0
votes
0answers
29 views

nesting callbacks with protractor

I'm using test framework protractor to test an angularjs app. I've been doing this for sometime now and one of the question that I've not been able to answer is : Suppose I want to modify a the value ...
0
votes
0answers
19 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
42 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" ...
0
votes
0answers
131 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 ...
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
76 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: <...