Skip to content
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

Closed
wants to merge 188 commits into from
Closed

Neyberson/connection #15

wants to merge 188 commits into from

Conversation

neyberson
Copy link
Collaborator

No description provided.

Base automatically changed from neyberson/browser_protocol to main August 19, 2024 17:49
ayjayt and others added 5 commits August 19, 2024 16:37
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.
@ayjayt ayjayt closed this Sep 3, 2024
@ayjayt ayjayt reopened this Sep 3, 2024
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
Copy link
Collaborator

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]
Copy link
Collaborator

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)
Copy link
Collaborator

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, "-"))
Copy link
Collaborator

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

@ayjayt ayjayt closed this Sep 3, 2024
@neyberson neyberson deleted the neyberson/connection branch September 4, 2024 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants