Mouse (click activity) is not working


I want to click yes button. which activity will be using best?
can anyone help me ?

1 Like

Did you try to:

  1. Attach to the pop-up window and use Click activity.
  2. Check “Simulate type” in properties of Click activity.
  3. Check “Send window message” in properties of Click activity.
    ?

Regards

3 Likes

@Abubakkar

First use Element Exists activity and indicate that pop up and will give boolean value as output.

If it is true then use Send Hot Key activity and pass “Enter” key.

@Abubakkar

First check whether that pop up existing or not and then use Click activity.

2 Likes

Fine @Abubakkar

You were almost done…
Just one activity to be replaced…
Replace the click with a send hot key activity and pass the key as enter …mention that popup as element in while making selector …
Just one step
Simple buddy
Hope this would help you
Cheers @Abubakkar

Is this correct ?

1 Like

Fine

  1. Get the output from the element exists activity with a variable which will be type boolean…lets say named out_boolean
  2. Use a if condition and pass the above variable as input condition like this
    Out_boolean= True
    If this condition gets passed it will go to THEN PART of if condition
    There inside then part place this CLICK activity…

Cheers @Abubakkar

@Abubakkar

Create one boolean variable and store result of Element Exists activity.

And then use IF condition and pass that boolean variable to it.

If it exists then it will go to else part there you put this click activty.

If popupExists
Then Click ‘Yes’
Else skip it.

please let me know my mistake buddy

@Abubakkar

In IF conidtion just write yes instead of yes = True.

Is ‘yes’ boolean variable or not ?

yes is a Boolean variable

@Abubakkar

Ok. Try this.

Check ppop exist or not using element exist activity and then send hotkey enter if you want to perform yes otherwise send hotkey tab and then enter.

I got this error

@Abubakkar

I said just write like this in IF condition.

yes

1 Like

Fine @Abubakkar

Kindly dont use variable name as “yes”
as it is a keyword we might face error
so name it as a standard naming convention like out_boolean
and mention in the if condition like this
out_boolean=True
if done like this, no error will come
hope ths would help you @Abubakkar

Cheers

but I get this error buddy.

1 Like

Fine kindly follow the below steps
lets take this one step at a time

  1. once after opening the excel and using send hot key of ctrl+c we might get this popup or we might not…so thats the reason why we are using element exists
  2. Now we are using the element exists and select the box entirely like that whole popup window…and get the output from this element exists as a variable of type boolean and name it out_boolean
  3. now use a if condition and mention like this in the condition
    out_boolean = True
    and if this condition passes it means that the popup appeared…right…?
    now it will get into THEN part of if condition where we need to click yes, so for that we can use a send hot key activity by selecting that whole popup window again as a selector and pass the key as enter…so remove that click activity and place only send hot key activity in then part and select the whole popup window as element …

Now if the element exists, it will go to then part and send hot key will send key as enter
else will pass through ELSE part and wont do anything
This will work for sure
Cheers @Abubakkar

1 Like

were you able to click now buddy @Abubakkar

1 Like