0
Hello, I wrote this code below, and I would like to return the value of the drive.execute_script. I know the value is 3 from the console.log(i), but this value can change, and I want to go back inside python, how would you do that?
```import time
import requests
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import json
url = "https://shadowarena.pearlabyss.com/en-US/Arena?battleType=0&server=sa"
option = Options()
option.headless = True
driver = webdriver.Firefox()
driver.get(url)
driver.execute_script('''
const ranking = document.querySelectorAll('div.thum_name')
for(var i = 0; i < ranking.length; i++){
var nick = document.querySelectorAll('div.thum_name')[i].innerText
if(nick === "YoDaSL"){
console.log(i)
}
}
```
''')
time.sleep(10)
driver.quit()