I used Selenium for all my testing but wanted to switch to UI.Vision as it gives me very nice features that helps me a lot.
I’ve a problem though as I can’t use my old code snippet for reading vales, that are entered by the tester and split them by a defined separator.
I tried adapting my code to read csv but that means I need to generate that CSV beforehand. We also receives the data in a very specific format. Also the separator can’t be comma, and I also can’t IT handle/change the data output so we can accommodate for putting the data into “” brackets.
My Code is very basic but I can’t adapt it for UI.Vision.
I would use:
data = prompt("Enter CSV line from Dataset"); var csv = data.split(";"); return(csv);
When the code is run a prompt pops up, asking for the Data. We paste the values from the CSV we’re given and the code splits the value by semicolon and afterwards save it in an array of a.
Afterwards it just fills the values from the array into specifics boxes.
Thanks for any help. And like i said, reading from csv is not going to work as we would’ve to change quit a lot in our backend to accommodate for that change.