-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neyberson/connection #15
Conversation
Adding a temporary directory as --user-data-dir to chrome flags will trick chrome into thinking a new user is running chrome, and therefore wont interfere with the currently running session.
Andrew/user data dir
Andrew/revision connection
Andrew/connection restructure
…otocol into neyberson/connection
def add_tab(self, tab): | ||
if not isinstance(tab, Tab): | ||
raise TypeError("tab must be an object of class Tab") | ||
self.sessions[tab.target_id] = tab |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
el error mio pero debes cuidarlos tambien, no debe estar en self.sessions[]
debe esta en self.tabs[]
def remove_session(self, target_id): | ||
if isinstance(target_id, Tab): | ||
target_id = target_id.target_id | ||
del self.sessions[target_id] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mismo
print(f"The following session was deleted: {session_obj.session_id}") | ||
class Tab(Target): | ||
def __init__(self, target_id, browser): | ||
super().__init__(self, target_id, browser.protocol) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tambien mal, no debe ser init(self
return True | ||
|
||
def run_output_thread(self, debug=False): | ||
print("Start run_output_thread() to improve debugging".center(6, "-")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
si vas a imprimir debug, debe estar a file=sys.stderr o lo que sea, y solo con debug=True
No description provided.