Youku page flipping element is a tag, do not know how to execute js code in python to achieve page turning?

1. I use selenium to simulate the operation of the browser, do not know how to click on the "next page" tab

2.stringbacks"

var nexts = document.getElementsByClassName("next");
var i;
var next_page;
for( i=0; i<nexts.length; iPP ){
  if( nexts[i].title == "" ){
  next_page = nexts[i];
  break;
  }
}
next_page.querySelector("-sharpvideoCommentlist > div.comment-pager-footer > div > ul.comment-pager-turn > li:nth-child(2) > a").click()
"""
execjs.eval(string)

3. The above code prompts: SyntaxError: invalid syntax

4. Specifically, how can I turn the page?

Mar.10,2021
Menu