Questions tagged [user-extensions.js]
16 questions
4
votes
3 answers
How to call the user-extensions.js in Selenium WebDriver
I need to use the functions defined in user-extensions.js.We are in a process of migration from RC to webdriver. I came to know, that there is JavascriptExecutor which will replace runScript and getEval.But how will i specify the user-extensions.js…

farheen
- 1,786
- 1
- 15
- 22
2
votes
2 answers
Selenium-Grid: How to use `user-extensions.js`
We're converting our Selenium tests to use Selenium-Grid.
I'm trying to find a way to launch selenium-grid's hub and/or remote so that it can use the user-extensions.js that we created before. I've been able to get everything to work with our old…

Joel
- 16,474
- 17
- 72
- 93
2
votes
1 answer
Upgrade to Mozilla Firefox 20 and Selenium IDE 2.0.0 - path for user-extensions.js has changed?
I recently upgraded to firefox 20, and upgraded selenium IDE to 2.0.0
I have a custom "user-extensions.js" file that I usually put…

Sky
- 333
- 1
- 3
- 7
1
vote
3 answers
Error using SelBlocks extension with Selenium server
I've been recording/writing Selenium html scripts using the SelBlocks extension. Now we're going to use Selenium server to run the tests in different browsers.
I tried getting the javascript from the SelBlock xpi by extracting it and reference that…

Ronald Salas
- 21
- 4
1
vote
2 answers
Getting Selenium RC null sessionId exception trying to enable JQuery AddLocationStrategy
I've been trying most of the day to enable JQuery locators on Selenium RC using various suggestions I've found on the interwebs but without much luck. I've followed the suggestions contained in this thread for enabling JQuery locators:
How do I add…

Armchair Bronco
- 2,367
- 4
- 31
- 44
1
vote
1 answer
SeleniumException: ERROR: Unknown command
I'm using setExtensionJs with an user-extensions.js file that defines a doFoo prototype.
This throws an exception everytime Selenium starts:
CHECKPOINT-FAIL com.thoughtworks.selenium.SeleniumException: ERROR: Unknown command "doFoo"
The…

naxos
- 11
- 4
1
vote
1 answer
Selenium user-extensions, Selenium IDE
I use Selenium IDE.I needed if-else construction and I found a Javascript file. I used the file in IDE easily. However when I tried to use the file with Selenium RC, I followed the steps:
Opened selenium.jar file and changed the user-extensions…

AbdullahC
- 23
- 9
1
vote
2 answers
Need to add a cutom user extensions in Selenium IDE
As part of the company product, User has to add a bookmarklet to the browser (a bookmark button that executes a JavaScript code instead of opening a URL).The source code of the bookmarklet is as follows:
javascript: (function () {
var d…

user2644066
- 11
- 1
- 3
1
vote
1 answer
Issue with selenium IDE, "[error] testCase.debugContext.currentCommand() is undefined"
I am seeing the this error in a script that hasn't changed - but the Selenium version has. The error happens for me at an EndWhile loop that successfully executes 10+ times. I face this error.
[error] testCase.debugContext.currentCommand() is…

Gunjan
- 59
- 1
- 1
- 6
0
votes
2 answers
is user-extension must for selenium RC?
I have created a project in Eclipse for Selenium automation using testNG framework. I have never used any user extension file in the past, but I heard that we need to use an user extension file. As since I am unsure of the proper use of this file I…

Unni
- 147
- 5
- 16
0
votes
1 answer
Calling custom assert function from Selenium RC (Python) with a custom locator function in user-extensions.js
I have written a custom assert function in user-extensions.js that uses a custom locator function - also implemented in user-extensions.js - to locate a particular element on a page.
Without getting into details; I need the custom locator function…

pixvrezx
- 1
0
votes
1 answer
Cannot execute custom Selenium assert function from user-extensions.js file, when running Python RC against Selenium server
I'm trying to export a Selenium script to Python from the Selenium IDE. I am using a few user-extension.js functions though (which are working in Selenium IDE). After exporting to Python, the generated script looks like this:
from selenium import…

nxhtltzw
- 3
- 1
0
votes
2 answers
Extending Selenium RC with new methods
I am extending the selenium RC by using user-extension.js.
It is able to call the new method function, but throwing following error message.
*ERROR: Command execution failure. Please search the forum at http://clearspace.openqa.org for error…

Bharath
- 21
- 5
0
votes
1 answer
Selenium RC - User Extension
Planning to calculate page response time using "Timer Extension" using http://wiki.openqa.org/display/SEL/Timer+Extension.
I have copied the code in "User-Extension.js" and updated the path in Selenium RC.
When I execute following code using…

Bharath
- 21
- 5
0
votes
1 answer
Selenium IDE - function checkDate (Current date and date in the future)
In my user extensions i used this code to check the date but it keeps getting errors:
Selenium.prototype.doCheckDate = function(){
var dates = new Date();
var day = dates.getDate();
if (day < 10){
day = '0' + day;
}
month =…
user2470332