My objective is to identify that the opened word doc contains some contents in it so that we can come to a conclusion that word doc successfully opened with some details in it. Unfortunately contents are showing like an image if i use gettext/get visible text its highlited entire window and its not identifying
Second option is how to identify that the word doc is opened in a separate tab
Is it using word application only? If yes then try to indicate the left bottom of word doc which says ready once whole document is loaded …that can be used as identifier…
Also generally we use word activities for word related taks rather than ui
No it’s a pdf file. If i try to extract entire text file is getting highlighted.
Expectation is, is there any text found inside the pdf then we can consider it as a success case
Or
If we can identify the new tab(which this pdf is opened) this also we can consider it as a success case
If you have the option to download the Word document, download the file and use the Word activities to read its contents and extract the information that is helpful to you.
Ok I believe when you do some clicks or so on website a new tab with pdf is opened…if so you can use check app state and check the second tab is opened or not by checking for the tab name or a print menu option on top that you get etc
Please show some screenshots that might help…if you are able to get text then definitely you can use check app state with selector