Skip to content

Commit

Permalink
Merge pull request #14 from ClericPy/dev
Browse files Browse the repository at this point in the history
1.1.1
  • Loading branch information
ClericPy authored Apr 4, 2020
2 parents 1bb1408 + 66adc53 commit a5a1ed9
Show file tree
Hide file tree
Showing 3 changed files with 244 additions and 53 deletions.
9 changes: 7 additions & 2 deletions examples/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ async def test_examples():

# watch the tabs switch
await tab.activate_tab()
await asyncio.sleep(.5)
await asyncio.sleep(.2)
await tab0.activate_tab()
await asyncio.sleep(.5)
await asyncio.sleep(.2)
await tab.activate_tab()

assert await tab.send('Network.enable') == {
Expand Down Expand Up @@ -190,6 +190,11 @@ def filter_function(r):
assert screen
assert part
assert len(screen) > len(part)
# draw
await tab.set_url('https://draw.yunser.com/')
walker = await tab.mouse_drag_rel_chain(320, 145).move(50, 0, 0.2).move(
0, 50, 0.2).move(-50, 0, 0.2).move(0, -50, 0.2)
await walker.move(50 * 1.414, 50 * 1.414, 0.2)
# clear cache
assert await tab.clear_browser_cache()
# close tab
Expand Down
2 changes: 1 addition & 1 deletion ichrome/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .base import Chrome, ChromeDaemon, Tab, Tag
from .logs import logger

__version__ = "1.1.0"
__version__ = "1.1.1"
__tips__ = "[github]: https://github.com/ClericPy/ichrome\n[cdp]: https://chromedevtools.github.io/devtools-protocol/\n[cmd args]: https://peter.sh/experiments/chromium-command-line-switches/"
__all__ = [
'Chrome', 'ChromeDaemon', 'Tab', 'Tag', 'AsyncChrome', 'AsyncTab', 'logger',
Expand Down
Loading

0 comments on commit a5a1ed9

Please sign in to comment.