I'm querying values from database to enter in the input field using selenium. However, for certain values I get the following error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 49: ordinal not in range(128)
I'm getting the error when the value to enter in the text field is something like 'Décor'. I understand that the issue with the character "é". How can I overcome this error?
Robot code:
*** Settings ***
Library SeleniumLibrary
Library DatabaseLibrary
*** Test cases ***
Test
${value} Get value from database
Input text ${locator} ${value}
*** Keywords ***
Get value from database
${queryResults} Query ${query}
[Return] ${queryResults}
Note: The error specifically occurs when inputting the text into the field(Step 2). Logging the same value to the console works fine.