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

result: “message”: “”,
image

Selector tag:
image

How to retrieve proper text from google chrome alert

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' />

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

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

PS: give some delay before the get text

Got text by using get full text activity.

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

1 Like

@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?

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

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

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.

2 Likes

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.

please can you elaborate … i did not get you

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

Use Get Full text activity instead of gettext

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

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

Keep the activity outside attach browser.

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

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 ?

1 Like

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

test56.xaml (7.5 KB)

2 Likes