Revision control
Copy as Markdown
//
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
import XCTest
extension XCUIApplication {
var settingsButton: XCUIElement {
if #available(iOS 14, *) {
return self.collectionViews.cells.buttons["Settings"]
} else {
return self.tables.cells["Settings"]
}
}
var findInPageButton: XCUIElement {
if #available(iOS 14, *) {
return self.collectionViews.cells.buttons["Find in Page"]
} else {
return self.tables.cells["Find in Page"]
}
}
var eraseButton: XCUIElement {
return self.buttons["URLBar.deleteButton"]
}
var homeViewSettingsButton: XCUIElement {
return self.buttons["HomeView.settingsButton"]
}
var searchSuggestionsOverlay: XCUIElement {
return self.buttons["OverlayView.searchButton"]
}
var settingsViewControllerDoneButton: XCUIElement {
return self.buttons["SettingsViewController.doneButton"]
}
var settingsBackButton: XCUIElement {
return self.navigationBars.buttons["Settings"]
}
var settingsDoneButton: XCUIElement {
return self.buttons["SettingsViewController.doneButton"]
}
var urlTextField: XCUIElement {
return self.textFields["URLBar.urlText"]
}
}