Skip to content

Commit

Permalink
Add crawl site stub
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorpela committed Sep 15, 2020
1 parent 9a71ac6 commit 3e67a56
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Browser/browser.py
Expand Up @@ -34,6 +34,7 @@
Waiter,
WebAppState,
)
from .keywords.crawling import Crawling
from .playwright import Playwright
from .utils import AutoClosingLevel, is_falsy, is_same_keyword, logger
from .version import VERSION
Expand Down Expand Up @@ -577,6 +578,7 @@ def __init__(
Promises(self),
Waiter(self),
WebAppState(self),
Crawling(self),
]
self.playwright = Playwright(self, enable_playwright_debug)
self._auto_closing_level = auto_closing_level
Expand Down
10 changes: 10 additions & 0 deletions Browser/keywords/crawling.py
@@ -0,0 +1,10 @@
from robotlibcore import keyword # type: ignore

from Browser.base import LibraryComponent


class Crawling(LibraryComponent):

@keyword(tags=["Crawling"])
def crawl_site(self, url):
pass
6 changes: 6 additions & 0 deletions atest/test/07_Crawler/crawling.robot
@@ -0,0 +1,6 @@
*** Settings ***
Resource ../keywords.resource

*** Test Cases ***
Crawling
${urls}= Crawl site reaktor.com

0 comments on commit 3e67a56

Please sign in to comment.