コード例 #1
0
ファイル: test_capture.py プロジェクト: GelLiNN/tagcompare
def test_capture_tag_remote():
    """
    Verify that we can capture iframe and script tags
    :return:
    """
    pb = output.create(
        build="capture_tag_test", config="testconfig", cid="testcid",
        tagsize="skyscraper", tagtype="iframe")
    tags = {"skyscraper": {
        "iframe": "<iframe>iframe tag for skyscraper</iframe>",
        "script": "<script>script tag for skyscraper</script>",
    }}

    capabilities = {
        "platform": "Windows 7",
        "browserName": "chrome"
    }

    remote_capture = TagCapture.from_caps(capabilities)
    __test_capture_tag(remote_capture, pb, tags)
コード例 #2
0
ファイル: test_capture.py プロジェクト: GelLiNN/tagcompare
def tagcapture_phantom():
    return TagCapture.from_config('phantomjs')