Added quitting the browser after finish
This commit is contained in:
parent
afba09e02d
commit
1bce8551e7
@ -58,6 +58,14 @@ class NebulaLoader:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def load(self) -> List[NebulaVideo]:
|
def load(self) -> List[NebulaVideo]:
|
||||||
|
videos = []
|
||||||
|
try:
|
||||||
|
videos = self._load()
|
||||||
|
finally:
|
||||||
|
self.driver.quit()
|
||||||
|
return videos
|
||||||
|
|
||||||
|
def _load(self) -> List[NebulaVideo]:
|
||||||
self.driver.get('https://nebula.app/login')
|
self.driver.get('https://nebula.app/login')
|
||||||
|
|
||||||
username_input = '//*[@name="email"]'
|
username_input = '//*[@name="email"]'
|
||||||
|
Loading…
Reference in New Issue
Block a user