Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 With SplashRequest to run javascript onclick function to render page properly
#1
Hello,
I need to call javascript function with my SplashRequest.
This javascript I need to execute before page is render
<a href="#" onclick="submitCreateReservation('ypsForm:j_id205','O-0-0-0');">option</a>

How should I code my SplashRequest?

yield SplashRequest(
    'http://example.com',
    endpoint='render.html',
    args={'js_source': 'document.title="My Title";'})
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  hatching not working properly with matplotlib Staph 3 107 Jul-28-2019, 07:17 AM
Last Post: ThomasL
  Writing the Path to a file properly dcw9996 2 204 Jul-01-2019, 11:26 PM
Last Post: dcw9996
  Python requests writes the name of the file instead of contents to web page bluethundr 1 267 Jun-05-2019, 09:35 PM
Last Post: Larz60+
  Reading json behind a login page ebolisa 3 338 May-26-2019, 05:15 PM
Last Post: heiner55
  Most optimized way to merge figures from multiple PDFs into one PDF page? dmm809 1 167 May-22-2019, 10:32 PM
Last Post: micseydel
  Need help trying to scroll a page with selenium tapeboxparts 4 199 May-10-2019, 08:01 PM
Last Post: tapeboxparts
  AssertionError: View function mapping is overwriting an existing endpoint function Zhavi221 7 1,284 Apr-17-2019, 01:07 PM
Last Post: Zhavi221
  Python 2.7.13 Issue Reading .txt files Properly username1145 3 255 Mar-24-2019, 03:08 PM
Last Post: username1145
  Locating Grids in full page image KolGuy80 0 194 Mar-20-2019, 09:47 AM
Last Post: KolGuy80
  Generating web page from argparse parameters gontajones 3 475 Nov-13-2018, 08:04 PM
Last Post: nilamo

Forum Jump:


Users browsing this thread: 1 Guest(s)