testfeast
2 years agoOccasional Contributor
Using Page Object as return type
Trying to write a function like:
def foo() -> Page:
#does something
return page
It returns a variable of type Page in TestComplete.
However, it gives me a runtime error: NameError: name 'Page' is not defined.
How should I change my code?