Skip to content

Commit e778122

Browse files
author
Haripriya Baskaran
committed
Add comments in code
1 parent bf5e832 commit e778122

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Python/CodeChef_Selenium/codechef_selenium_script.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
# Import statements
12
from selenium import webdriver
23
from webdriver_manager.chrome import ChromeDriverManager
34
from time import sleep
45
from selenium.webdriver.common.action_chains import ActionChains
56
import os
67

8+
# User input declaration
79
username = ""
810
password = ""
911
solution = ""
@@ -42,7 +44,7 @@ def go_to_problem():
4244
sleep(5)
4345

4446
def upload_solution():
45-
# scroll down
47+
# scroll down to a pivot element
4648
actions = ActionChains(driver)
4749
pivot = driver.find_element_by_xpath("//*[@id='edit-submit-1']")
4850
actions.move_to_element(pivot).perform()

0 commit comments

Comments
 (0)