isrpa 1.1.3__tar.gz → 1.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isrpa
3
- Version: 1.1.3
3
+ Version: 1.1.4
4
4
  Summary: isrpa package
5
5
  Home-page: https://github.com/yourusername/mypackage
6
6
  Author: ysq
@@ -158,7 +158,9 @@ def get_active_page(browser, active_page_id):
158
158
  """
159
159
  获取当前激活page对象
160
160
  """
161
- for page in browser.contexts[0].pages:
161
+ context = browser.contexts[0]
162
+ context.add_init_script('''localStorage.setItem('devtool', 'open');''')
163
+ for page in context.pages:
162
164
  client = page.context.new_cdp_session(page)
163
165
  target_info = client.send("Target.getTargetInfo")
164
166
  if target_info.get('targetInfo').get('targetId') == active_page_id:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isrpa
3
- Version: 1.1.3
3
+ Version: 1.1.4
4
4
  Summary: isrpa package
5
5
  Home-page: https://github.com/yourusername/mypackage
6
6
  Author: ysq
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='isrpa',
5
- version='1.1.3',
5
+ version='1.1.4',
6
6
  packages=find_packages(),
7
7
  install_requires=["requests", "tldextract"],
8
8
  author='ysq',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes