Skip to content

Commit

Permalink
0.27rc3
Browse files Browse the repository at this point in the history
  • Loading branch information
ultrafunkamsterdam committed Mar 10, 2024
1 parent 4976a19 commit fbf34f4
Show file tree
Hide file tree
Showing 6 changed files with 188 additions and 52 deletions.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
1 change: 1 addition & 0 deletions docs/_build/html/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ <h1>All modules for which code is available</h1>
<li><a href="nodriver/cdp/web_authn.html">nodriver.cdp.web_authn</a></li>
<li><a href="nodriver/core/browser.html">nodriver.core.browser</a></li>
<li><a href="nodriver/core/config.html">nodriver.core.config</a></li>
<li><a href="nodriver/core/connection.html">nodriver.core.connection</a></li>
<li><a href="nodriver/core/element.html">nodriver.core.element</a></li>
<li><a href="nodriver/core/tab.html">nodriver.core.tab</a></li>
</ul>
Expand Down
214 changes: 164 additions & 50 deletions docs/_build/html/_modules/nodriver/core/connection.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/_build/html/searchindex.js

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions nodriver/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,27 @@ async def html_from_tree(tree: Union[cdp.dom.Node, Element], target: "nodriver.T
return out


def compare_target_info(
info1: cdp.target.TargetInfo, info2: cdp.target.TargetInfo
) -> List[typing.Tuple[str, typing.Any, typing.Any]]:
"""
when logging mode is set to debug, browser object will log when target info
is changed. To provide more meaningful log messages, this function is called to
check what has actually changed between the 2 (by simple dict comparison).
it returns a list of tuples [ ... ( key_which_has_changed, old_value, new_value) ]
:param info1:
:type info1:
:param info2:
:type info2:
:return:
:rtype:
"""
d1 = info1.__dict__
d2 = info2.__dict__
return [(k, v, d2[k]) for (k, v) in d1.items() if d2[k] != v]


def loop():
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "nodriver" # Required
version = "0.27rc2" # Required
version = "0.27rc3" # Required
description = """
* Official successor of Undetected Chromedriver
* Can be made to work for for all chromium based browsers.
Expand Down

0 comments on commit fbf34f4

Please sign in to comment.