Bug 213961 - [WebDriver][Py3] Two imported selenium tests are raising UnicodeEncodeError with non-ascii chars
Summary: [WebDriver][Py3] Two imported selenium tests are raising UnicodeEncodeError w...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-04 09:39 PDT by Lauro Moura
Modified: 2020-07-04 09:39 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 2020-07-04 09:39:10 PDT
Both tests fail with a similar backtrace.

  imported/selenium/py/test/selenium/webdriver/common/typing_tests.py::testNumberpadAndFunctionKeys[WebKitGTK]


    def testNumberpadAndFunctionKeys(driver, pages):
        pages.load("javascriptPage.html")
        element = driver.find_element(by=By.ID, value="keyReporter")
        element.send_keys(
            "abcd{}{}{}{}{}{}{}{}{}{}{}{}abcd"
            .format(
                Keys.MULTIPLY, Keys.SUBTRACT, Keys.ADD, Keys.DECIMAL, Keys.SEPARATOR,
                Keys.NUMPAD0, Keys.NUMPAD9, Keys.ADD, Keys.SEMICOLON, Keys.EQUALS, Keys.DIVIDE,
>               Keys.NUMPAD3
            )
        )
E       UnicodeEncodeError: 'ascii' codec can't encode character u'\ue024' in position 0: ordinal not in range(128)


  imported/selenium/py/test/selenium/webdriver/common/typing_tests.py::testArrowKeysAndPageUpAndDown[WebKitGTK]

    def testNumberpadAndFunctionKeys(driver, pages):
        pages.load("javascriptPage.html")
        element = driver.find_element(by=By.ID, value="keyReporter")
        element.send_keys(
            "abcd{}{}{}{}{}{}{}{}{}{}{}{}abcd"
            .format(
                Keys.MULTIPLY, Keys.SUBTRACT, Keys.ADD, Keys.DECIMAL, Keys.SEPARATOR,
                Keys.NUMPAD0, Keys.NUMPAD9, Keys.ADD, Keys.SEMICOLON, Keys.EQUALS, Keys.DIVIDE,
>               Keys.NUMPAD3
            )
        )
E       UnicodeEncodeError: 'ascii' codec can't encode character u'\ue024' in position 0: ordinal not in range(128)