-
Notifications
You must be signed in to change notification settings - Fork 0
/
navigation.py
62 lines (38 loc) · 1014 Bytes
/
navigation.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import pyautogui as py
import time
# # # Wait for 4 seconds
time.sleep(4)
#Get the current position of the mouse cursor
position = py.position()
# Print the position
print(f"Mouse position: {position}")
# py.scroll(-850)
# py.hotkey('ctrl', '+')
# time.sleep(0.3)
# py.hotkey('ctrl', '+')
# time.sleep(0.3)
# py.hotkey('ctrl', '+')
# time.sleep(0.3)
# py.hotkey('ctrl', '+')
# time.sleep(0.3)
# py.hotkey('ctrl', '+')
# py.click(x=756, y=566)
# py.press('tab')
# py.press('down')
# py.press('down')
time.sleep(1)
py.moveTo(x=459,y=882)
# Wait for the website to load
# time.sleep(5)
# # Press Ctrl + F to open the browser's search box
# py.hotkey('ctrl', 'f')
# # Wait for the find box to appear
# time.sleep(1)
# # Type the word you're searching for
# search_word = " schon mal eine Thrombose"
# py.write(search_word)
# time.sleep(1)
# py.press("esc")
# py.press("tab")
# py.press("right")
# Press Enter to initiate the search