Yes, if you are using capybara, you may use `visit ' http://myurl.com/goes-here'`
Em qua, 26 de dez de 2018 às 11:21, fugee ohu <fugee...@gmail.com> escreveu: > > > 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 >>>> >>> >>> browser.execute_script(' >>> https://gpsfront.sitename.com/getI2iRecommendingResults.do?callback=jQuery18307882644047005491_1545806199753¤tItemList=32819755026&categoryId=200001521&shopId=2339135&companyId=238468932&recommendType=&scenario=pcDetailLeftTopSell&limit=6&offset=0&_=1545806304149 >>> ') >>> >>> 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 a topic in the > Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/rubyonrails-talk/CpOPHz-zFsc/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > rubyonrails-talk+unsubscr...@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 > <https://groups.google.com/d/msgid/rubyonrails-talk/acaef991-80d3-4c6c-bccc-fdc017ef4734%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- *Rafael Belo* Web Developer Skype: rafaelrpbelo Twitter: @rafaelrpbelo Linkedin: rafaelrpbelo <https://www.linkedin.com/in/rafaelrpbelo/> -- 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+unsubscr...@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/CAMVeeFFHFzUG2Ybrdwd5Y9UeUE7_aai5n5oUeHx1A5svzwdgTw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.