Пример #1
0
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
def tagcapture_phantom():
    return TagCapture.from_config('phantomjs')