Pass URLs on recursion
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
from selenium import webdriver
|
||||
from selenium.webdriver.common.keys import Keys
|
||||
from selenium.webdriver.common.by import By
|
||||
from selenium.webdriver.support.wait import WebDriverWait
|
||||
from selenium.webdriver.support import expected_conditions as EC
|
||||
from selenium.webdriver.common.action_chains import ActionChains
|
||||
import AutoTicket
|
||||
import AutoColor
|
||||
import json
|
||||
@@ -55,7 +50,7 @@ def choice(urls,users,driver):
|
||||
AutoTicket.auto_ticket(urls,users,driver)
|
||||
if "di" in user_choice.lower():
|
||||
AutoColor.tag_assist(urls,driver)
|
||||
print("More?")
|
||||
print("Go back to Directly or Tickets choice?")
|
||||
if input("y/n : ") == "y":
|
||||
choice(urls,users,driver)
|
||||
|
||||
@@ -71,5 +66,6 @@ def main():
|
||||
with open('team.json', 'r') as file:
|
||||
users = json.load(file)
|
||||
choice(urls,users,driver)
|
||||
driver.close()
|
||||
|
||||
main()
|
||||
Reference in New Issue
Block a user