I'm using Selenium in Python 3.4.
I tried to put a Korean word as an argument in the find_element_by_link_text()
method, but it doesn't work.
What I mean is that it did not create any errors but it cannot find any hyperlink whose text is Korean.
Here is some example code:
from selenium import webdriver
browser = webdriver.PhantomJS()
browser.get('www.certain-korean-web-page.com')
a = browser.find_element_by_link_text('한국말')
print(a)
And it raises NoSuchElementException
even though the page source has that element (of course, I checked an English one and it works).
Is it a unicode problem?
Thanks.