Search code examples
c#seleniumappium-android

Unable to inspect element by text value


In the attached screenshot I want to read the value of title which is 'Title_6jOa' But I'm unable to locate the element because text value is not present in highlighted area.

Any solution please.? enter image description here


Solution

  • @yong , @Subburaj Sorry tried yours way too, but getting no value.

    Getting the value in below way perfectly.

    Steps:

    1. Double click in the text field. To get text selected. enter image description here

    2. Then copy the text to clipboard using Keyboard key ctrl+c Copy the text

    3. And Then the final step is reading the text from clipboard by below line of code in c#.

    string clipboardExpectedText = System.Windows.Forms.Clipboard.GetText(System.Windows.Forms.TextDataFormat.Text);