Skip to content

KIF causes exception on using WKWebView #1269

Description

@gerchicovy

I add empty fullscreen empty WKWebView and try to click it but get exception:
Thread 1: "[<WKWebView 0x7fcdf002f600> valueForUndefinedKey:]: this class is not key value coding-compliant for the key _internal."
Sources:
https://github.com/kif-framework/KIF/blob/master/Sources/KIF/Additions/UIView-KIFAdditions.m

Let check:

BOOL isWebView = [self isKindOfClass:[WKWebView class]]; //YES
...
if ([NSStringFromClass([self class]) isEqual:@"UIWebBrowserView"]) { //NO
} else if (isWebView) { //YES
  id webViewInternal = [self valueForKey:@"_internal"]; //Exception
  ...
}

What is @"_internal" for WKWebView?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions