Scenario: Navigate from overview to system details
Given the login page is displyed
When log in is selected
the user selects a red bubble
Then bubble-details are displayed
@When('the user selects a red bubble')
def click_checkpoint(self):
def find_checkpoint(self):
p = pyautogui.locateOnScreen('venv/screens/2018-04-26_0806.png')
c = pyautogui.center(p)
d = list(c)
find_checkpoint(pyautogui.click(d[0], d[1], duration=1))
I keep getting an error on: File "src\Playground\Navigation\steps\interaction.py", line 55, in click_checkpoint find_checkpoint(pyautogui.click(d[0], d[1], duration=1)) NameError: name 'd' is not defined
obviously i have not structured the python correctly but lack the skills to trouble shoot it, maybe someone has a quick fix.
The goal is to define the pyautogui and run it immediately after but in the same step