Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,15 +31,19 @@ def run_script(text: str):
|
|
| 31 |
#html=driver.page_source
|
| 32 |
driver.implicitly_wait(30)
|
| 33 |
driver.set_window_size(1920, 1080)
|
| 34 |
-
obj = driver.find_element(By.
|
| 35 |
#obj = driver.find_element_by_id("in_html")
|
| 36 |
######################
|
| 37 |
#inp = driver.find_element("id","input")
|
| 38 |
'''
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
'''
|
| 44 |
#inp.send_keys("test")
|
| 45 |
######################
|
|
|
|
| 31 |
#html=driver.page_source
|
| 32 |
driver.implicitly_wait(30)
|
| 33 |
driver.set_window_size(1920, 1080)
|
| 34 |
+
obj = driver.find_element(By.NAME, "in_card")
|
| 35 |
#obj = driver.find_element_by_id("in_html")
|
| 36 |
######################
|
| 37 |
#inp = driver.find_element("id","input")
|
| 38 |
'''
|
| 39 |
+
find_element(By.ID, "id")
|
| 40 |
+
find_element(By.NAME, "name")
|
| 41 |
+
find_element(By.XPATH, "xpath")
|
| 42 |
+
find_element(By.LINK_TEXT, "link text")
|
| 43 |
+
find_element(By.PARTIAL_LINK_TEXT, "partial link text")
|
| 44 |
+
find_element(By.TAG_NAME, "tag name")
|
| 45 |
+
find_element(By.CLASS_NAME, "class name")
|
| 46 |
+
find_element(By.CSS_SELECTOR, "css selector")
|
| 47 |
'''
|
| 48 |
#inp.send_keys("test")
|
| 49 |
######################
|