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
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
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
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
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
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
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
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
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: