         navigator.openURL(testURL)
         waitUntilPageLoad()
         // Verify that the context menu prior to download a file is correct
-        app.webViews.links["1 Mio file"].firstMatch.tap()
+        app.webViews.staticTexts[testFileName].firstMatch.tap()
+        app.webViews.buttons["Download"].tap()
 
         waitForExistence(app.tables["Context Menu"])
         XCTAssertTrue(app.tables["Context Menu"].staticTexts[testFileName].exists)

        navigator.openURL(testURL)
        waitUntilPageLoad()
        for _ in 0..<numberOfDownlowds {
            app.webViews.links["1 Mio file"].firstMatch.tap()
            waitForExistence(app.tables["Context Menu"])
            app.tables["Context Menu"].cells["download"].tap()
        }
    }

import XCTest

let testFileName = "Small.zip"
let testFileSize = "178 bytes"
let testURL = "http://demo.borland.com/testsite/download_testpage.php"
let testBLOBURL = "http://bennadel.github.io/JavaScript-Demos/demos/href-download-text-blob/"
let testBLOBFileSize = "35 bytes"

