Skip to content

Commit 6fceeb8

Browse files
committed
add comments
1 parent dca3ca0 commit 6fceeb8

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

WebDriverAgentLib/Categories/XCUIElement+FBWebDriverAttributes.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ @implementation XCUIElement (WebDriverAttributesForwarding)
3030
{
3131
BOOL inDepth = [name isEqualToString:FBStringify(XCUIElement, isWDAccessible)]
3232
|| [name isEqualToString:FBStringify(XCUIElement, isWDAccessibilityContainer)]
33+
// To retrice entire text https://github.com/appium/appium-xcuitest-driver/issues/2552
3334
|| [name isEqualToString:FBStringify(XCUIElement, wdValue)]
3435
|| [name isEqualToString:FBStringify(XCUIElement, wdIndex)];
3536
return [self fb_takeSnapshot:inDepth];

WebDriverAgentLib/Commands/FBElementCommands.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ + (NSArray *)routes
151151
{
152152
FBElementCache *elementCache = request.session.elementCache;
153153
XCUIElement *element = [elementCache elementForUUID:(NSString *)request.parameters[@"uuid"]];
154+
// 'fb_takeSnapshot:YES' is to retrice entire text https://github.com/appium/appium-xcuitest-driver/issues/2552
154155
FBXCElementSnapshotWrapper *wrappedSnapshot = [FBXCElementSnapshotWrapper ensureWrapped:[element fb_takeSnapshot:YES]];
155156
id text = FBFirstNonEmptyValue(wrappedSnapshot.wdValue, wrappedSnapshot.wdLabel);
156157
return FBResponseWithObject(text ?: @"");

0 commit comments

Comments
 (0)