Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions seleniumbuilder/chrome/content/html/js/builder/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ m.sel2_server_error = "Server Error";
m.sel2_must_playback_in_foreground = "Note: Must leave playback window in foreground during local playback.";
m.sel2_eval_failed = "Script evaluation failed.";
m.sel2_eval_false = "Eval result \"{0}\" does not match \"{1}\".";
m.sel2_bypass = "ByPass step \{0}\"";

// Step display
m.param_expr_info = "<br>Parameter expressions of the form <i>${varname}</i> are replaced by the contents of the variable <i>varname</i>";
Expand Down Expand Up @@ -288,6 +289,8 @@ m.misc_sel2_cat = "Misc";
m.assertion_sel2_cat = "Assertion";
m.verify_sel2_cat = "Verify";
m.wait_sel2_cat = "Wait";
m.bypass_sel2_cat = "ByPass";
m.bookmarklet_sel2_cat = "BookmarkLets";
m.store_sel2_cat = "Store";

// Data-driven
Expand Down
28 changes: 27 additions & 1 deletion seleniumbuilder/chrome/content/html/js/builder/i18n/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ m.sel2_server_error = "Erreur serveur";
m.sel2_must_playback_in_foreground = "Remarque: Lors du rejeu, la fenêtre active doit rester au premier plan.";
m.sel2_eval_failed = "Echec de l'évaluation.";
m.sel2_eval_false = "le résultat de l'évaluation \"{0}\" ne correspond pas à \"{1}\".";
m.sel2_bypass = "cette étape a été volontairement éludée (\{0}\")";

// Step display
m.param_expr_info = "<br>Parameter expressions of the form <i>${varname}</i> are replaced by the contents of the variable <i>varname</i>";
Expand Down Expand Up @@ -288,6 +289,8 @@ m.misc_sel2_cat = "Autre";
m.assertion_sel2_cat = "Assertion";
m.verify_sel2_cat = "Vérification";
m.wait_sel2_cat = "Attente";
m.bypass_sel2_cat = "Délestage";
m.bookmarklet_sel2_cat = "Signapplet";
m.store_sel2_cat = "Affectation";


Expand All @@ -313,56 +316,69 @@ m.step_refresh = "Raffraichir la page";
m.step_assertTextPresent = "Vérifier la présence du texte (bloquant)";
m.step_verifyTextPresent = "Vérifier la présence du texte";
m.step_waitForTextPresent = "Attendre la présence du texte";
m.step_bypassTextPresent = "Delester suite à la présence du texte";
m.step_storeTextPresent = "Affecter la présence du texte";
m.step_assertBodyText = "Vérifier le document (bloquant)";
m.step_verifyBodyText = "Vérifier le document";
m.step_waitForBodyText = "Attendre le document";
m.step_bypassBodyText = "Délester suite au contenu";
m.step_storeBodyText = "Affecter le document";
m.step_assertElementPresent = "Vérifier la balise (bloquant)";
m.step_verifyElementPresent = "Vérifier la balise";
m.step_waitForElementPresent = "Attendre la balise";
m.step_bypassElementPresent = "Délestage suite à la balise";
m.step_storeElementPresent = "Affecter la balise";
m.step_assertPageSource = "Vérifier le code source (bloquant)";
m.step_verifyPageSource = "Vérifier le code source";
m.step_waitForPageSource = "Attendre le code source";
m.step_bypassPageSource = "Délester suite au code source";
m.step_storePageSource = "Affecter le code source";
m.step_assertText = "Vérifier le contenu de la balise (bloquant)";
m.step_verifyText = "Vérifier le contenu de la balise";
m.step_waitForText = "Attendre le contenu de la balise";
m.step_bypassText = "Délester suite au contenu de la balise";
m.step_storeText = "Affecter le contenu de la balise";
m.step_assertCurrentUrl = "Vérifier l'URL (bloquant)";
m.step_verifyCurrentUrl = "Vérifier l'URL";
m.step_waitForCurrentUrl = "Attendre la page";
m.step_waitForCurrentUrl = "Attendre l'URL";
m.step_bypassCurrentUrl = "Délester suite à l'URL";
m.step_storeCurrentUrl = "Affecter l'URL";
m.step_assertTitle = "Vérifier le titre (bloquant)";
m.step_verifyTitle = "Vérifier le titre";
m.step_waitForTitle = "Attendre le titre";
m.step_bypassTitle = "Délester suite au titre";
m.step_storeTitle = "Affecter le titre";
m.step_assertElementAttribute = "Vérifier l'attribut d'une balise(bloquant)";
m.step_verifyElementAttribute = "Vérifier l'attribut d'une balise";
m.step_waitForElementAttribute = "Attendre l'attribut d'une balise";
m.step_bypassElementAttribute = "Délester suite à l'attribut d'une balise";
m.step_storeElementAttribute = "Affecter l'attribut d'une balise";
m.step_assertElementStyle = "Vérifier le style d'une balise(bloquant)";
m.step_verifyElementStyle = "Vérifier le style d'une balise";
m.step_waitForElementStyle = "Attendre le style d'une balise";
m.step_bypassElementStyle = "Délester suite au style d'une balise";
m.step_storeElementStyle = "Affecter le style d'une balise";
m.step_assertElementSelected = "Vérifier la sélection (bloquant)";
m.step_verifyElementSelected = "Vérifier la sélection";
m.step_waitForElementSelected = "Attendre la sélection";
m.step_bypassElementSelected = "Délester suite à la sélection";
m.step_storeElementSelected = "Affecter la sélection";
m.step_assertElementValue = "Vérifier la valeur d'un composant (bloquant)";
m.step_verifyElementValue = "Vérifier la valeur d'un composant";
m.step_waitForElementValue = "Attendre la valeur d'un composant";
m.step_bypassElementValue = "Délester suite à la valeur d'un composant";
m.step_storeElementValue = "Affecter la valeur d'un composant";
m.step_addCookie = "Ajouter un cookie";
m.step_deleteCookie = "Supprimer un cookie";
m.step_assertCookieByName = "Vérifier le contenu du cookie (bloquant)";
m.step_verifyCookieByName = "Vérifier le contenu du cookie";
m.step_waitForCookieByName = "Attendre le contenu du cookie";
m.step_bypassCookieByName = "Délester suite au contenu du cookie";
m.step_storeCookieByName = "Affecter le contenu du cookie";
m.step_assertCookiePresent = "Vérifier (bloquant)";
m.step_verifyCookiePresent = "Vérifier la présence du cookie";
m.step_waitForCookiePresent = "Attendre la présence du cookie";
m.step_bypassCookiePresent = "Délester suite à la présence du cookie";
m.step_storeCookiePresent = "Affecter la présence du cookie";
m.step_saveScreenshot = "Effectuer une capture d'écran";
m.step_switchToFrame = "Changer de cadre (FRAME)";
Expand All @@ -376,18 +392,28 @@ m.step_pause = "Effectuer une pause";
m.step_assertAlertText = "Vérifier le message d'alerte (bloquant)";
m.step_verifyAlertText = "Vérifier le message d'alerte";
m.step_waitForAlertText = "Attendre le message d'alerte";
m.step_bypassAlertText = "Délester suite au message d'alerte";
m.step_storeAlertText = "Affecter le message d'alerte";
m.step_assertAlertPresent = "Vérifier la présence d'une alerte (bloquant)";
m.step_verifyAlertPresent = "Vérifier la présence d'une alerte ";
m.step_waitForAlertPresent = "Attendre l'affichage d'une alerte ";
m.step_bypassAlertPresent = "Délester suite à l'affichage d'une alerte ";
m.step_storeAlertPresent = "Affecter la présence d'une alerte ";
m.step_assertEval = "Vérifier le script (bloquant)";
m.step_verifyEval = "Vérifier le script";
m.step_waitForEval = "Attendre la fin du script";
m.step_bypassEval = "Délester suite à la fin du script";
m.step_storeForEval = "Affecter le résultat du script";
m.step_answerAlert = "Compléter la boite de dialogue";
m.step_acceptAlert = "Acquitter la boite de dialogue";
m.step_dismissAlert = "Répudier la boite de dialogue";
m.step_printWindowName = "Affiche le nom de la fenêtre courante";
m.step_renameWindow = "Renommer la fenêtre";
m.step_forceTargets = "Forcer le nom des fenêtres cibles";
m.step_deleteComments = "Supprimer les commentaires du code source";
m.step_deleteCachesUrls = "Supprimer les paramètres de caches des liens";
m.step_deleteHiddenValues = "Supprimer les données cachées (input[hidden])";

m.p_attributeName = "Attribut";
m.p_file = "Fichier";
m.p_locator = "Localisation";
Expand Down
124 changes: 124 additions & 0 deletions seleniumbuilder/chrome/content/html/js/builder/selenium2/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ builder.selenium2.docs = {
"params": {"text": "The expected alert text." },
"description": "Wait for an alert showing with the given text."
},
"bypassAlertText": {
"params": {"text": "The expected alert text." ,"nbstep":"number of step to bypass"},
"description": "bypass n steps that there is an alert showing with the given text."
},
"storeAlertText": {
"params": {"variable": "The name of the variable to store the text in." },
"description": "Store the text of the visible alert in the given variable."
Expand All @@ -92,6 +96,10 @@ builder.selenium2.docs = {
"params": {},
"description": "Wait for an alert."
},
"bypassForAlertPresent": {
"params": {"nbstep":"number of step to bypass"},
"description": "bypass n steps that there is an alert."
},
"storeAlertPresent": {
"params": {"variable": "The name of the variable to store in whether an alert is present." },
"description": "Store whether an alert is present in the given variable."
Expand Down Expand Up @@ -235,6 +243,12 @@ builder.selenium2.docs = {
},
"description": "Waits until the current URL is the given value."
},
"bypassCurrentUrl": {
"params": {
"url": "The URL we want to be at."
},
"description": "Waits until the current URL is the given value."
},
"storeCurrentUrl": {
"params": {
"variable": "The name of the variable to store the URL in."
Expand All @@ -259,6 +273,12 @@ builder.selenium2.docs = {
},
"description": "Waits for the current page to have the given title."
},
"bypassTitle": {
"params": {
"title": "Title we want the current page to have."
},
"description": "Waits for the current page to have the given title."
},
"storeTitle": {
"params": {
"variable": "Name of the variable to store the title into."
Expand Down Expand Up @@ -286,6 +306,13 @@ builder.selenium2.docs = {
},
"description": "Waits for the given element containing exactly the given text."
},
"bypassText": {
"params": {
"locator": "How to find the element whose text to test.",
"text": "The text we want the element to have."
},
"description": "Waits for the given element containing exactly the given text."
},
"storeText": {
"params": {
"variable": "The name of the variable to store the element's text in.",
Expand All @@ -311,6 +338,12 @@ builder.selenium2.docs = {
},
"description": "Waits for the given text to appear somewhere on the page."
},
"bypassTextPresent": {
"params": {
"text": "The text we want to feature on the page."
},
"description": "Waits for the given text to appear somewhere on the page."
},
"storeTextPresent": {
"params": {
"variable": "The name of the variable to store whether the given text is on the page.",
Expand All @@ -336,6 +369,12 @@ builder.selenium2.docs = {
},
"description": "Waits for the text of the entire page body to be as given."
},
"bypassBodyText": {
"params": {
"text": "The text we want the entire page to be."
},
"description": "Waits for the text of the entire page body to be as given."
},
"storeBodyText": {
"params": {
"variable": "The name of the variable to store the page body text in."
Expand All @@ -360,6 +399,12 @@ builder.selenium2.docs = {
},
"description": "Waits for the page source to be as given."
},
"bypassPageSource": {
"params": {
"source": "The expected page source."
},
"description": "Waits for the page source to be as given."
},
"storePageSource": {
"params": {
"variable": "The name of the variable to store the page source in."
Expand All @@ -384,6 +429,12 @@ builder.selenium2.docs = {
},
"description": "Waits for an element to exist."
},
"bypassElementPresent": {
"params": {
"locator": "How to find the element."
},
"description": "Waits for an element to exist."
},
"storeElementPresent": {
"params": {
"variable": "Name of the variable to store the attribute value in.",
Expand All @@ -409,6 +460,12 @@ builder.selenium2.docs = {
},
"description": "Waits for an element to be selected."
},
"bypassElementSelected": {
"params": {
"locator": "How to find the element."
},
"description": "Waits for an element to be selected."
},
"storeElementSelected": {
"params": {
"variable": "Name of the variable to store the attribute value in.",
Expand Down Expand Up @@ -440,6 +497,14 @@ builder.selenium2.docs = {
},
"description": "Waits for an element's attribute to assume a specific value."
},
"bypassElementAttribute": {
"params": {
"locator": "How to find the element.",
"attributeName": "The name of the attribute to check.",
"value": "The value we want the attribute to have."
},
"description": "Waits for an element's attribute to assume a specific value."
},
"storeElementAttribute": {
"params": {
"variable": "Name of the variable to store the attribute value in.",
Expand Down Expand Up @@ -472,6 +537,14 @@ builder.selenium2.docs = {
},
"description": "Waits for an element's CSS style property to assume a specific value."
},
"bypassElementStyle": {
"params": {
"locator": "How to find the element.",
"propertyName": "The name of the CSS style property to check.",
"value": "The value we want the property to have."
},
"description": "Waits for an element's CSS style property to assume a specific value."
},
"storeElementStyle": {
"params": {
"variable": "Name of the variable to store the property value in.",
Expand Down Expand Up @@ -501,6 +574,13 @@ builder.selenium2.docs = {
},
"description": "Waits for an element's value to become the given one."
},
"bypassElementValue": {
"params": {
"locator": "How to find the element.",
"value": "The value we want the element to have."
},
"description": "Waits for an element's value to become the given one."
},
"storeElementValue": {
"params": {
"variable": "The name of the variable to store the element's value in.",
Expand All @@ -526,6 +606,12 @@ builder.selenium2.docs = {
},
"description": "Waits for a cookie with the given name to be present."
},
"bypassCookiePresent": {
"params": {
"name": "The cookie's name."
},
"description": "Waits for a cookie with the given name to be present."
},
"storeCookiePresent": {
"params": {
"variable": "The name of the variable where to store whether the cookie exists.",
Expand Down Expand Up @@ -554,6 +640,13 @@ builder.selenium2.docs = {
},
"description": "Waits for a cookie with the given name and value to be present."
},
"bypassCookieByName": {
"params": {
"name": "The cookie's name.",
"value": "The value (content) the cookie is expected to have."
},
"description": "Waits for a cookie with the given name and value to be present."
},
"storeCookieByName": {
"params": {
"variable": "The name of the variable to store the cookie's value in.",
Expand Down Expand Up @@ -582,12 +675,43 @@ builder.selenium2.docs = {
},
"description": "Waits for the given script to evaluate to the given value. Use 'return' to return the result of the evaluation, e.g. 'return 3'."
},
"bypassEval": {
"params": {
"script": "A JavaScript expression to be evaluated.",
"value": "The value the script is expected to evaluate to."
},
"description": "Waits for the given script to evaluate to the given value. Use 'return' to return the result of the evaluation, e.g. 'return 3'."
},
"storeEval": {
"params": {
"variable": "The name of the variable to store evaluation result in.",
"script": "A JavaScript expression to be evaluated. Use 'return' to return the result of the evaluation, e.g. 'return 3'."
},
"description": "Evaluates a JavaScript expression and stores the result in a variable."
},
"printWindowName": {
"description": "Print out the currrent window name."
},
"renameWindow": {
"params" : {
"name": "a current window new name"
},
"description": "Name or Rename the current window DOM object."
},
"forceTargets": {
"params" : {
"name": "a target value or framename (current value:\"_blank\",\"_self\",\"_parent\",\"_top\",...)"
},
"description": "force all links to specifie name to linked document (href and open)"
},
"deleteComments": {
"description": "delete all comments of the html structure"
},
"deleteCachesUrls": {
"description": "delete all params of urls image / css / js"
},
"deleteHiddenValues": {
"description": "delete data value of hidden input tags"
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ builder.selenium2.io.canExport = function(lang_info, stepType) {
if (!lang_info.getters || !lang_info.boolean_getters) { return false; }
var booleanVersion = false;
for (var b = 0; b < 2; b++) {
var stepFlavors = ["assert", "verify", "waitFor", "store"];
var stepFlavors = ["assert", "verify", "waitFor", "bypass", "store"];
for (var f = 0; f < stepFlavors.length; f++) {
var flavor_key = (booleanVersion ? "boolean_" : "") + stepFlavors[f];
if (stepType.name.startsWith(stepFlavors[f]) && lang_info[flavor_key] !== undefined) {
Expand Down Expand Up @@ -280,7 +280,7 @@ builder.selenium2.io.createLangFormatter = function(lang_info) {
} else {
var booleanVersion = false;
for (var b = 0; b < 2; b++) {
var stepFlavors = ["assert", "verify", "waitFor", "store"];
var stepFlavors = ["assert", "verify", "waitFor", "bypass", "store"];
for (var f = 0; f < stepFlavors.length; f++) {
var flavor_key = (booleanVersion ? "boolean_" : "") + stepFlavors[f];
if (step.type.name.startsWith(stepFlavors[f]) && lang_info[flavor_key] !== undefined) {
Expand Down
Loading