GetText activity returns empty string while trying to retrieve text from google chrome alert window


#1

result: “message”: “”,
image

Selector tag:
image

How to retrieve proper text from google chrome alert


#2

Hello there,
Try this out,
Works for me.:slight_smile:

<html app='chrome.exe' />
<ctrl name='www.acme-test.com says:' role='dialog' />
<ctrl name='Report was uploaded - confirmation id is *' role='text' />

#3

This still returns empty value or “\r\n” but the confirmation text is not retrieved.where are google ocr was able to return the text but it is not matching with the actual confirmationid.
example
Original Id: e5e7f420d0d6037a3557721cdcfd555a.
Google OCR ID: 9597f420d0d6037a355772lcdcdeSSa


#4

google ocr ?:thinking: not require here.
Just get text should work.

PS: give some delay before the get text


#5

Got text by using get full text activity.

For some unknown reason “get text” activity didn’t work for me


#6

@ddpadil

Hi!! I just end up with same error discussed in this thread. I tired ur solution but no luck… Selector not found error returns…

Have any other solution?


#7

That solution works, Better if you use IE to solve the test cases


#8

Hi Did you have this issue resolved ?
I have got a similar issue in chrome and trying to find a solution


#9

Yes. it was resolved.

Try Element scope and use get attribute activity inside it.

Use selector as <html app='chrome.exe'/> <ctrl role='dialog' /> for element scope and <ctrl role='text' /> for get attribute.

Place input attribute as “name” and capture the output.

It works.


#10

Chandru,
how do you know what selectors to use / How to edit Selectors ?
Is there a document that will give me more insights on how to modify selectors ?

Please can you share .

Many Thanks.


#11

please can you elaborate … i did not get you


#12

test56.xaml (6.9 KB)

I tried to do what you mention in the attached workflow. But I ha:sweat_smile:ve no idea how it works. Can you please take look into it for me


#13

Use Get Full text activity instead of gettext


#14

in the selector,I get as below

so when i run the flow , it errors with message " invalid selector" .

so I make it " Report was uploaded - * " , but i still continue to receive the error .

image


#15

in the selector,I get as below

so when i run the flow , it errors with message " invalid selector" .

so I make it " Report was uploaded - * " , but i still continue to receive the error .

image

image


#16

Keep the activity outside attach browser.

Use elements exists to check if the window available and then use get full text activity


#17

Hi thanks mate :slight_smile: … it worked…

quick question the information that i need is in the second last line.

Report was uploaded - confirmtion id is …

the order of lines will keep changing . Is there any other way i can do this ?


#18

Please find the attached Updated File. Let me know if it works

test56.xaml (7.5 KB)