Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

125
Views
selenium execute_script only returns plain list
self.driver.get(self.DEL_PINO)
        resp = self.driver.execute_script("""
            var targetDate = "20220325"
            var jcd = "01";
            var resp = [];
            url = '/rsv.selectTimeScd.dp/dmparse.dm';
            data = {"fRsvD":targetDate, "fJiyukCd":"01"};
            $('div.rsvTable tbody#rsvTableBody').html("");
            postAjax(url, data, function(result){
                var timesList = result.times;
                var rowcnt_this = 1;
                
                for(var i=0; i<timesList.length; i++) {
                    var rowcnt = timesList[i].rowcnt;
                    var label = timesList[i].rsLabel.replace(":", "시 ") + "분";
                    var btClass = '';
        
                    resp.push("javascript:setFdata('"+jcd+"','"+timesList[i].fRsvD+"','"+timesList[i].fRsvT+"','"+timesList[i].fRsvDv+"', '"+timesList[i].fGubunCd+"', '"+timesList[i].fSelfYn+"', '"+timesList[i].fRoundCode+"', '"+btClass+"','"+timesList[i].dcAmt+"','"+timesList[i].assn_ind_inwon+"','"+timesList[i].fGubunCode+"','"+timesList[i].fRoundInd+"','"+timesList[i].fAssnInd+"','"+timesList[i].fInTerms+"','"+timesList[i].fSelfCartYn+"');");
                
                    if(rowcnt_this == rowcnt)
                        rowcnt_this = 1;
                    else
                        rowcnt_this++;
                }
            });
            
            return resp;
        """)
        print(resp)

I am trying to get the reservation list of the website by execute_script. However, I always get the result of

[]

How can I solve this problem?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!