Hi Phillip @qqilihq
If my data file is hollow in Selenium-running workflows, the send button doesn’t occur to transfer the file. I want to close the web browser automatically when the send button (with condition) does not occur.
I’m trying to edit my workflow by making use of the mail flow when the send button can’t find the search element. But I could not fulfill the element condition?
As you see, the corresponding Find Elements returns an empty table, when no element (i.e. the “Send” button in you case) is found (node has the yellow warning sign).
So, a Try node will not help you here. Instead you can use an Empty Table Switch node to create two branches – one in case the button was found, and one in case it was not found. In those branches, just execute the appropriate functionality, and join both branches with an End If node at the end:
The final Quit WebDriver currently will not work, as the input table is empty and thus the browser will remain open. You can circumvent this by connecting the Quit WebDriver with the very beginning of the workflow (e.g. directly to the Start WebDriver node), and then add an additional Flow Variable connection from the End If to the Quit WebDriver which will serve as synchronization.