Skip to content

Commit

Permalink
Change Tab to Target in isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
neyberson committed Sep 6, 2024
1 parent 32614cf commit 8eb068f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devtools/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ async def close_tab(self, target):
raise RuntimeError(
"There is no eventloop, or was not passed to browser. Cannot use async methods"
)
if isinstance(target, Tab):
if isinstance(target, Target):
target = target.target_id
response = await self.send_command(
command="Target.closeTarget",
Expand Down

0 comments on commit 8eb068f

Please sign in to comment.