Ruby on Rails Wednesday, December 26, 2018



On Wednesday, December 26, 2018 at 8:19:47 AM UTC-5, Rafael Belo wrote:
You are passing an URL instead of a script.
This function "execute_script" it's to execute sobre javascript "script".
You've to visit the page with the browser support.
If you're using Capybara, you shoul use the "visit" function passing the URL that you want to go.
But if not, you've to look which command your driver has to visit URL's.

Em quarta-feira, 26 de dezembro de 2018 03:51:39 UTC-3, fugee ohu escreveu:


On Tuesday, December 25, 2018 at 6:40:23 PM UTC-5, Hassan Schroeder wrote:
On Tue, Dec 25, 2018 at 3:16 PM fugee ohu <fuge...@gmail.com> wrote:
>
> How do i scrape dynamic content from Struts framework with Ruby

Same as any web source: send a request, parse the response. Is
there some particular issue you're encountering?

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

Selenium::WebDriver::Error::UnknownError: unknown error: Runtime.evaluate threw exception: SyntaxError: Unexpected end of input
  (Session info: chrome=71.0.3578.80)
  (Driver info: chromedriver=2.42.591071 (0b695ff80972cc1a65a5cd643186d2ae582cd4ac),platform=Linux 4.15.0-43-generic x86_64)



Must I use the url?
 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/acaef991-80d3-4c6c-bccc-fdc017ef4734%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment