diff --git a/api/@ohos.uitest.d.ts b/api/@ohos.uitest.d.ts index e694beb9fb326b2c706861ebee072abf555a87c6..b89d1f954316e4599b31abe24c0763e0ca0d31dd 100644 --- a/api/@ohos.uitest.d.ts +++ b/api/@ohos.uitest.d.ts @@ -257,6 +257,7 @@ declare class UiComponent { /** * Get the text attribute value. * @syscap SystemCapability.Test.UiTest + * @returns the text value. * @since 8 * @deprecated since 9 * @useinstead {@link Component.getText} @@ -564,10 +565,10 @@ declare interface Point { * @since 9 */ declare interface Rect { - readonly leftX: number; - readonly topY: number; - readonly rightX: number; - readonly bottomY: number; + readonly left: number; + readonly top: number; + readonly right: number; + readonly bottom: number; } /** @@ -788,6 +789,7 @@ declare class Component { /** * Get the text attribute value. * @syscap SystemCapability.Test.UiTest + * @returns the text value. * @throws {BusinessError} 17000002 - if the async function was not called with await. * @throws {BusinessError} 17000004 - if the component is invisible or destroyed. * @since 9