If Titus's suggestion doesn't sort it it's worth checking to see if line 
breaks are getting handled properly and that the encoding is handled properly. 
Found a random link:
https://forums.asp.net/t/1456447.aspx?how+to+convert+line+breaks+r+n+to+excel+alt+enter+after+exporting+from+mssql+to+excel+csv

When you're cutting and pasting between excel and the browser there's some 
level of converting that can happen automatically. That may be why it only 
works when you do it manually. 
And encoding's always important. Ideally, the string that you're pasting should 
be read in using the correct encoding and pasted as a UTF-8 string, which is 
the default for Ruby. Probably not the issue here but it's worth checking if 
you haven't already.
At one point a long time ago I ran into a driver-specific bug related to 
setting a text field with a multiline string. That bug's long gone. But if the 
more obvious things to try aren't helping then it might be worth trying a quick 
test with another browser/driver.


    On Sunday, October 14, 2018, 5:56:48 PM PDT, Sharat Oommen 
<[email protected]> wrote:  
 
 Hi all,
I have been facing this issue with watir where i havent been able to copy a 
particular dataset into a text box effectively. Usually most websites support 
excel sheet upload but in this particular case i have to copy paste the data 
set into a textbox directly. It works fine when i manually do it however while 
trying to automate it with watir i am finding eratic behaviour/ i tried to use 
a combination of /t and /n in the string set passed to the textox but it still 
doesnt help. Any help wrt this regard would be much appreciated.

Thanks

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.
 
[email protected]
http://groups.google.com/group/watir-general
[email protected]
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
  

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to