Unreliable click and Type into activity

Dear Members,

I am building a simple workflow for logging into gmail. But when use type into , click. They are very unreliable and sometimes and sometimes don`t work. I tried below things to resolve the issue.

  1. gave 3 seconds delay before each activity.
  2. tried using launch Workflow Interactive.
  3. Replaced click with click Image.

But even after all this my workflow is still very unreliable.

Kindly let me know what else can be done.

I am attaching the Workflow for your referrence.
GmailRehearsel.xaml (17.3 KB)

1 Like

@MinalGupta

May I know which browser are you using ?

2 Likes

i tried in IE and chrome both

1 Like

@MinalGupta

I notice you have “Element Exists”. Can you change WaitForReady to COMPLETE?
Also depending on internet speed, Timeout may need to be increased.

1 Like

Unfortunately I can`t do that , because , the element exists depending on if I am login for first time or not. Sometimes , the element doesnt truly exists, so it should fall into else branch.

Regarding timeout, The robot does reach the page and is there. I know 3 seconds have not happened; so do you thing this will help ?

1 Like

And also my other problem that i dont understand why it does not give any error like selector not found or so , why it simply come out and finishes the workflow ; when it actually has not finished,

1 Like

Hi @MinalGupta

Use type secure text for password and set text for username and keep title as *

Thanks
Ashwin.S

1 Like

Hi @MinalGupta

I also experienced that ! please try to change the properties value of WaitForReady to NoNE

3 Likes

Will try that and will let you know if it works . thanks @pattyricarte

1 Like

I am doing the same only @AshwinS2

1 Like

Surprisingly what worked for me is I tried to run the same processes in another PC with different version of Uipath , and it worked.

2 Likes

Hi @MinalGupta

Which version

Thanks
Ashwin.S

1 Like

@AshwinS2 - Just checked both my laptop and computer has same version 2019.6.0. But surprisingly it work`s on my computer and not laptop.

Also both have windows 10. :frowning:

1 Like

@MinalGupta hii i just gone through your xaml file,it’s working as expected,i didn’t get any issues .

2 Likes

@MinalGupta I would suggest to use Do while activity with iterator, inside do while just check if field you are trying to fill has text you wanted if no, then type into again and so one. Of course you have to add iterator or time stamp to break the loop with exception.

1 Like

@venkatmalla6 - Yes, right it has no errors because it works absolutely fine on my computer every time i run.

Looks like for now the problem is resolved,The reason i has supplied only user name in the robot in the orchestrator whereas we should supply both the domain name and user name ( the one that you get by typing whoami in cmd)

1 Like

@MinalGupta

Yes exactly you have to specify both DomainName\Username in this format.

1 Like

@lakshman , yes, but what i still dont understand is, how can it cause the program to break in between while executing .

@loginerror - would you like to add anything here?

1 Like

@MinalGupta

Use Log message Activity in between your process and check logs where exactly it is failing.