Skip to content

Commit dc5ebe6

Browse files
CopilotP4X-ng
andcommitted
Merge PR #21: Fix AttributeError (t.type → t.type_) in examples
Co-authored-by: P4X-ng <223870169+P4X-ng@users.noreply.github.com>
1 parent 02768e6 commit dc5ebe6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/get_title.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async def main():
3333
targets = await target.get_targets()
3434

3535
for t in targets:
36-
if (t.type == 'page' and
36+
if (t.type_ == 'page' and
3737
not t.url.startswith('devtools://') and
3838
not t.attached):
3939
target_id = t.target_id

examples/screenshot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async def main():
3434
targets = await target.get_targets()
3535

3636
for t in targets:
37-
if (t.type == 'page' and
37+
if (t.type_ == 'page' and
3838
not t.url.startswith('devtools://') and
3939
not t.attached):
4040
target_id = t.target_id

0 commit comments

Comments
 (0)