Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=profusion-mobi.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7t1fpu8+7adEQsxsGxekdlqDHB7rF/XIYkVjAQMQa+w=; b=vZIjqt+1Yp4SnFlrqAjfgKQE1DzMrdM5Fkp9whtuXfygzB89bb6aPpBbWyVQUFzJqO pFcbG3b35zn+pyGI5ok0t9Uh+7BKQ8b2zmKMMbxvMKN5PFqPyNow/nJNA57EKiSenqrF zN1lMXZkiQmxj/NA2i5BA0O50TWqxj/dJDamB3V+7FjJhrwYdzB3O2xV+s4rkPZRW/Ih bdtwYcXhgJSVGy7tayWQLgE5+bbJ+Rh8dRtQb2St3d8prCuRGq9Pe4rnbUOLcnNPz2K5 ZHOXmvaUiHVxomwb3zexN+AQvy3Uxa8Sykswh464PqX0guDWfbqByb5WXaawX6+JY4Mk LnHQ== From: Guilherme Campos Camargo Date: Wed, 28 Mar 2018 21:08:30 -0300 Message-Id: <20180329000832.12268-15-guicc@profusion.mobi> In-Reply-To: <20180329000832.12268-1-guicc@profusion.mobi> References: <20180329000832.12268-1-guicc@profusion.mobi> Subject: [Fuego] [PATCH 14/16] Use a fixed language for Selenium Chrome-WebDriver List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org This will allow elements to be searched by text (english) disregarding eventual page translations that may take place depending on the system's locale. Signed-off-by: Guilherme Campos Camargo --- engine/tests/Functional.fuegotest/test_run.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/tests/Functional.fuegotest/test_run.py b/engine/tests/Functional.fuegotest/test_run.py index 91d0666..0370b6f 100755 --- a/engine/tests/Functional.fuegotest/test_run.py +++ b/engine/tests/Functional.fuegotest/test_run.py @@ -419,6 +419,8 @@ class SeleniumContainerSession(): options.add_argument('headless') options.add_argument('no-sandbox') options.add_argument('window-size=1200x600') + options.add_experimental_option( + 'prefs', {'intl.accept_languages': 'en,en_US'}) self.driver = webdriver.Chrome(chrome_options=options) self.driver.implicitly_wait(3) -- 2.16.2