I use with imacro and chrome a macro to make clicks at a specific location on a web page, with the loop function and the good timing of 2:10 it restarts correctly... 99 times, but what I'm looking for is a command line that launches the rest of the macro (the clicks have a precise location already defined) only if the value of a specific field of the web page is equal to 0, otherwise it remains on hold then rechecks so on... It's possible ? thank you in advance
Automatically launch the rest of the macro if the value is 0, otherwise wait and check regularly
Related
Im creating a workflow for approvals using power automate. I also have this reminder system set up to remind them every hour for 4 times and then once a day afterwards. This works when I have a parallel task set up, but for this specific loop in the approval, im using apply to each since i can add as many people to review myd ocument as I want. I notice that I can't reset the delay action while its active because it is still running. The only way it gets reset is that the delay action is finished and starts the loop again and then the variable gets reset.
This works if the loop isnt inside an apply to each and the reminder system works as well.
enter image description here
Trying to learn basic blue prism.
I have made an object to login to my gmail account.
It enters the page where mail id has to be entered. The email id gets entered and the next page appears where the password has to be entered. But in the writer tool it shows the following message : "Internal : Failed to perform step 1 in Write Stage 'Writer2' on page 'Initialise' - No elements match the supplied query terms"
I looked into all the most obvious bugs and I cant find anything wrong. Can someone please give any suggestions as to what the problem could be?
The specific error message you're getting indicates there's an issue with your spying of the element you're attempting a Write on.
Without knowing anything else about the way you've included/excluded certain attributes of the element you're attempting to write to, the only sound advice one could offer would be to open the Application Modeler and trial-and-error the "Match?" for each attribute until you're able to use the "Highlight" button and verify a single interface element is selected. (Usually in circumstances such as yours, the "Value" attribute of the element you've spied has its Match checkbox selected, but the value has changed since spying it, thus making it not a match.)
check if the data item you are storing the password in is of password type.
You can reset the password by going ahead with the "write" property and delete once and drag-drop again at the same place and click OK. reset the flowchart and run them again, you'll not get the error. I had faced the same issue earlier and got fixed.
It sometimes happens due to the slowness of your internet connection BP not able to read the data item info and directly moved to next steps, to fix it, you can use wait functionality and give the 8-10 sec of wait time.
Hope this helps.
stay blessed!
When spying a browser please make sure you are using HTML mode to capture the necessary Element (please note that BP only supports IE, so no Chrome or other browser!). Also, please remember that the browser page you are spying has to be launched from the Application Modeller in order to be "attached" by BP.
To cycle between modes, simply hit the Alt key after clicking "Identify" on the Application Modeller. After you have captured the correct area of the page where your password goes, uncheck all the attributes of the element that are blank and also the URL attribute (you should be left with 4 maybe 5 atributes left), then hit "Apply" and "OK". Click "Highlight" to make sure BP still finds the element of the page that you want. Then in your Process or Object canvas, use a "Write" stage and drop this element you just created in the Element field, and the password into the Value field (the value has to be between "" unless you are using a data item instead of typing it in). If you have done all this, the "Write" stage should most definitely enter the password into the password field. Good luck!
I want to automate a process in web application using UIPath. There is a check box which need to be checked everytime I want to generate report. I was trying to automate using "click" in UI automation. There is no issue on the first process.
However, the check box doesn't reset to "uncheck" after the first process is done.
So the next time I run the process again, the check box get clicked again into "uncheck" condition.
I want to create an automation to check if the check box state is "checked" or "uncheck". If the state is "checked", then I want to skip the click check box process.
What is the ideal way to do this? I imagine using workflow flow decision. But if anybody can elaborate which function I need touse. It would be a great help!
You could just use the UiPath activity Check. You can find it in Ui Automation > Element > Control. Look for the property Action and in your case choose check (default). This won't check the checkbox if its already checked.
You can use the Get Attribute activity and you'll need to identify the attribute name for the checkbox that you are looking to extract. You can then assign it's value to a variable(probably a string) and check the value and proceed accordingly. In my test case it was the "text" attribute I needed to use which brought back a value of either checked or unchecked.
I've created a QTreeWidget that displays data that's pulled from 3rd party API calls.
I want the data to be fresh when the user either clicks on or uses the arrow keys to navigate to any QTreeWidgetItem. This means making an API call each time the user clicks or uses an arrow key. Importantly: If the user clicks on the same item a second time, I would like the item to display fresh data (in other words, make another API call and populate with new data, aka refresh)
So far, I've tried:
connecting both itemSelectionChanged and itemClicked to the same update function. This works, but it means that for every click on a new QTreeWidgetItem, I get two calls to the update function (one from itemClicked and the other from itemSelectionChanged), and therefore two API calls that do the exact same thing. Not ideal.
Only handling itemClicked, but then using an event filter to look for Key_Up or Key_Down and then manually emitting an itemClicked. The problem with this is that the key event is handled before the selection is changed, so when using the arrow keys, I'm always getting data for the last QTreeWidgetItem selected, not the current QTreeWidgetItem.
I thought about creating a very short timer or a flag and starting/setting at the start of the update function. If the timer is running or the flag is set, don't run the function (the idea being that the first slot would run, but the second would not because the flag is set/timer is running), but that seems both sloppy and prone to race conditions.
Unfortunately, using a QTreeView with a QAbstractItemModel is not an option.
With that, is there any way to handle both a repeated click on the same item and arrow keys to select new items without double-calling the same update function?
As #ekhumoro pointed out, this can be done by handling both itemClicked and itemSelectionChanged, but introducing some logic so that both functions don't run at the same time.
When a user clicks on the widget, an itemClicked signal is fired. When the user changes selection, the itemSelectionChanged signal is fired. In my case, then, I've created two slots (functions): update (a slot for itemSelectionChanged) and updateFromClick (a slot for itemClicked). updateFromClick checks to see if the selection has changed (this means you always have to store and keep track of the current selection). If, in updateFromClick, I see that the selection has changed, then I do nothing, as update will have been called from itemSelectionChanged. If, in updateFromClick, I see that the selection has not changed, I know that itemSelectionChanged has not been fired, so I call the update function explicitly from updateFromClick.
Again, this is just a long-winded version of #ekhumoro's comment that I'm putting here so the question doesn't go unanswered.
I have created LWUIT Tabs ,when the user clicks on any tab, I want to execute some logic,the logic output will be some list of items,but the problem is when the user clicks on the tab again. My tab related logic is executing continously. I want to stop that,for that I want to place if condition, that should check my list contains values or not,can any one what should be the method I need to use?
myList.getModel().getSize() > 0