Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-28 Thread Abe Heward
Oh, man, Jari - The gains in speed from going this way instead of reading the logs in the browser are amazing. I only wish I'd known about open-uri 6 months ago! -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com h

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Abe Heward
Sweetness! You rock. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Jari Bakken
On Mon, Jun 27, 2011 at 11:23 PM, Abe Heward wrote: > Ah. Okay. Here's why I can't do that: > > Because the file is on a server whose drive is not mapped locally. So, > File.open("http://69.71.52.209/tmp/fb-pixels.log";, "r") results in a "The > system cannot find the file specified." error. > Tr

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Abe Heward
Ah. Okay. Here's why I can't do that: Because the file is on a server whose drive is not mapped locally. So, File.open("http://69.71.52.209/tmp/fb-pixels.log";, "r") results in a "The system cannot find the file specified." error. -- Before posting, please read http://watir.com/support. In sho

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Abe Heward
It's been a simple matter of putting the link to the file in the browser address bar. I suppose I can switch to opening it directly, though. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.c

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Jari Bakken
On Mon, Jun 27, 2011 at 10:13 PM, Abe Heward wrote: > It's not an HTML page. It's a .log file, containing straight text, including > the tabs. > What's the purpose of using Watir for this? Why not just read the file from Ruby? -- Before posting, please read http://watir.com/support. In short: s

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Abe Heward
It's not an HTML page. It's a .log file, containing straight text, including the tabs. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@google

Re: [wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Jari Bakken
On Mon, Jun 27, 2011 at 9:02 PM, Abe Heward wrote: > > See? The tabs are converted to spaces. That's right, WebDriver's mechanism for fetching the visible text replaces tabs with spaces. >  That's bad, because I am parsing > this output as tab-delimited. Switching to space-delimited isn't really

[wtr-general] Watir-Webdriver alters text containing tabs.

2011-06-27 Thread Abe Heward
Reporting this here because I'm not sure where else to post it and also because it's perhaps already been reported as a bug. I have a web page that contains tab-delimited text. When I go to that page using Watir and the following code... x = browser.text p x The output I get looks like this: