Ive already tried looking through forums but I couldnt find anything to get the Element Exist and If Function to work.
Currently when I go to the webpage it will sometimes ask me to login again, and sometimes it lets me do my tasks without login.
I am trying to create a “element exists” and if function where if it skips login then it clicks a check box and hit submit. If it asks me to login then it logs in and i proceed with the checkbox and submit
My work flow look like this:
Go to web page - Element exists (login page) - Then login and click check box and submit - Else Click checkbox and submit
It does the Else part perfectly when the login page does not appear. If the login page comes up i get an error highlighting click checkbox part in the Else part. Seems like it doesnt do anything in the then function.
My variable is set:
Name: elementfound
Variable type: boolean
Scope: Do
Default: nothing
if condition: elementfound=true
im very new to RPA and uipath so any extra detailed information would be great.
Use Element Exist, and find the unique element of the page like login button / some element which will not identify in the page where it is already logged in
No in IF condition write as
ElementFound
Then->True->Enter the login details
Else->False->place your click checkbox logic
Always validate the element in both scenarios, like login page, after login page
Yeah try the suggestion from @shreyash_shirbhate . don’t select the entire screen for element exist activity just indicate the Submit button since it is unique Ui element in the login page. if you get submit button it means that you are on login page. please perform the login and after that proceed with subsequent steps. thanks.
yeah it looks super perfect. i don’t know why it is not able to recognize. do you see any errors for element exist or it is directly going to the else part.
Check do you have any default values for the boolean variable you are trying to get the output from the element exist.
ok till now don’t see any issues. not sure what is the issue my friend. sorry not able to help you much on this. i hope you would get some help from other forum members. thanks.