它的XCUIElement和WebElement一样。但是对于硒getText()中存在的XCUIElement是否有类似的WebElement方法?基本上,我想从XCUIElement中捕获文本。,例如:
let ele:XCUIElement = XCUIApplication().collectionViews.cells[
XCTAssertTrue(XCUIElement().scrollToElement(tablesQuery.cells.staticTexts"Featured").exists)示例代码行:作为解决方案的一部分,您可以建议:现在如何创建XCUIElement实例?参考:scrollToElement()
open f