Hi,all!
I'm so sorry for repeating question,but this problem becomes critical:
I have to click a button with the next attributes:<input type="submit" align="middle" " class="gob" value="GO" style="cursor: default;"/>
I'm used to click like browser.button(:value,"GO").click,as result I get Exception:
java.io.UnsupportedEncodingException: win-1251 (NativeException)
from sun/io/Converters.java:251:in `newConverter'
from sun/io/ByteToCharConverter.java:68:in `getConverter'
from sun/nio/cs/StreamDecoder.java:224:in `<init>'
from sun/nio/cs/StreamDecoder.java:210:in `<init>'
from sun/nio/cs/StreamDecoder.java:77:in `forInputStreamReader'
from java/io/InputStreamReader.java:83:in `<init>'
from org/cyberneko/html/HTMLScanner.java:895:in `setInputSource'
from org/cyberneko/html/HTMLConfiguration.java:478:in `setInputSource'
... 39 levels...
Is there any way to change encoding?
I don't know why,but Browser.new(:charset => "some-charset") doesn't make any effect
Thank you very much
|