Fix (?) logged_in property.
This commit is contained in:
parent
5707698b66
commit
32a87d7b6d
|
@ -238,9 +238,10 @@ class Operator(wd.Firefox):
|
||||||
"""
|
"""
|
||||||
_base_domain = ".".join(self.uri.netloc.split(".")[-2:])
|
_base_domain = ".".join(self.uri.netloc.split(".")[-2:])
|
||||||
cookies = [c["name"] for c in self.get_cookies() if _base_domain in c["domain"]]
|
cookies = [c["name"] for c in self.get_cookies() if _base_domain in c["domain"]]
|
||||||
_right_url = "/jsp/home.jsp" in self.current_url
|
self.logger.debug("Cookies: %s", cookies)
|
||||||
_cookies = "dtLatC" in cookies
|
# _right_url = "/jsp/home.jsp" in self.current_url
|
||||||
return _right_url and _cookies
|
_cookies = all(c in cookies for c in ("spcookie", "JSESSIONID", "ipclientid"))
|
||||||
|
return _cookies
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def checked_in(self) -> bool:
|
def checked_in(self) -> bool:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user