github seleniumbase/SeleniumBase v1.36.5
Add the French translation of SeleniumBase

latest releases: v4.32.8, v4.32.7, v4.32.6...
4 years ago

Add the French translation of SeleniumBase

  • Adding SeleniumBase methods in French
  • Also updating existing translations
  • Add an example test in French
  • Limit demo-mode highlights for non-browser asserts
  • Make sure special characters are kept with self.get_current_url()

Here's what the example test in French looks like:

from seleniumbase.translate.french import CasDeBase

class ClasseDeTest(CasDeBase):

    def test_exemple_1(self):
        self.ouvrir_url("https://fr.wikipedia.org/wiki/")
        self.vérifier_le_texte("Wikipédia")  # noqa
        self.vérifier_un_élément('[title="Visiter la page d’accueil"]')
        self.modifier_le_texte("#searchInput", "Crème brûlée")
        self.cliquez_sur("#searchButton")
        self.vérifier_le_texte("Crème brûlée", "#firstHeading")
        self.vérifier_un_élément('img[alt*="Crème brûlée"]')
        self.modifier_le_texte("#searchInput", "Jardin des Tuileries")
        self.cliquez_sur("#searchButton")
        self.vérifier_le_texte("Jardin des Tuileries", "#firstHeading")
        self.vérifier_un_élément('img[alt*="Jardin des Tuileries"]')
        self.retour()
        self.vérifier_la_vérité("brûlée" in self.obtenir_url_actuelle())
        self.en_avant()
        self.vérifier_la_vérité("Jardin" in self.obtenir_url_actuelle())

Don't miss a new SeleniumBase release

NewReleases is sending notifications on new releases.