Exemplo n.º 1
0
        private static Page GetPage(this ElementHandle elementHandle)
        {
            var propertyInfo = elementHandle.GetType().GetProperty("Page", BindingFlags.NonPublic | BindingFlags.Instance);
            var methodInfo   = propertyInfo?.GetGetMethod(nonPublic: true);

            return(methodInfo?.Invoke(elementHandle, null) as Page);
        }