We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf5e832 commit e778122Copy full SHA for e778122
Python/CodeChef_Selenium/codechef_selenium_script.py
@@ -1,9 +1,11 @@
1
+# Import statements
2
from selenium import webdriver
3
from webdriver_manager.chrome import ChromeDriverManager
4
from time import sleep
5
from selenium.webdriver.common.action_chains import ActionChains
6
import os
7
8
+# User input declaration
9
username = ""
10
password = ""
11
solution = ""
@@ -42,7 +44,7 @@ def go_to_problem():
42
44
sleep(5)
43
45
46
def upload_solution():
- # scroll down
47
+ # scroll down to a pivot element
48
actions = ActionChains(driver)
49
pivot = driver.find_element_by_xpath("//*[@id='edit-submit-1']")
50
actions.move_to_element(pivot).perform()
0 commit comments