You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trouble helps to see this method in the xctestxcaxclientProxy.m file, every time you call, you will abnormally
(Nsdictionary *) AttributeSforeelement: (ID) ELEMENT
Attributes: (NSArray *) Attributes
{
IF ([XCTestaxClient RespondStoselector: @selector (AttributeSforeelement: attributes: error :)) {
NSERROR * Error = NIL;
// If you execute it, you will exit it.
NSDictionary * result = [xctestaxclient AttributeSforelement: Element
Attributes: Attributes
Error: & Error];
Return Result;
}
Return [XCTestaxClient AttributeSforeelement: Element Attributes: Attributes];
}
The mobile phone used is iPhone 11, the system version is 14.2
If the incoming parameter Element calling this method is set to AccessiblityElement, the crash is not, but the query is not the corresponding attribute.
(NSDictionary *)attributesForElement:(id )element
attributes:(NSArray *)attributes
{
if ([XCTestAXClient respondsToSelector:@selector(attributesForElement:attributes:error:)]) {
NSError error = nil;
//执行到此处就异常退出
NSDictionary result = [XCTestAXClient attributesForElement:element
attributes:attributes
error:&error];
return result;
}
return [XCTestAXClient attributesForElement:element attributes:attributes];
}
使用的手机是iphone 11,系统版本是14.2
The text was updated successfully, but these errors were encountered: