I follow the tutorial in the following official link to learn RPA and can't execute it. Who has an RPA script that can be executed? Please send me a few to learn.
https://www.ibm.com/docs/en/rpa/21.0?topic=tutorials-getting-values-from-web-pagedefVar --name pathMyDocuments
--type String
defVar --name directoryObtainedFiles
--type String
defVar --name instanceName
--type String
--value "browser-instance"
defVar --name ratesForCountries
--type DataTable
defVar --name tableRow
--type Numeric
--value 1
defVar --name countriesColumn
--type String
defVar --name rateColumn
--type String
defVar --name pathCsvFile
--type String
defVar --name fileExists
--type Boolean
defVar --name countriesColumnName
--type String
defVar --name rateColumnName
--type String
defVar --name companyData
--type String
defVar --name graphCompany
--type Image
getSpecialFolder --folder "MyDocuments" pathMyDocuments=value
createDir --path "
${pathMyDocuments}\\rpa_challenge_tutorial" directoryObtainedFiles=value
webStart --name "
${instanceName}"
--type "Firefox"
webNavigate --url "http://rpachallenge.com/assets/rpaStockMarket/index.html"
webWait --timeout "00:00:30"
webGetTable --selector "CssSelector"
--css "body>div>div.cinsert>div>div.items>table"
--timeout "00:00:30" ratesForCountries=value
logMessage --message "
${ratesForCountries}"
--type "Info"
for --variable ${tableRow} --from 1
--to ${ratesForCountries.Rows}
--step 1
mapTableRow --dataTable ${ratesForCountries} --row ${tableRow} --mappings "number=1=
${countriesColumn},number=2=
${rateColumn}"
setVar --name "
${pathCsvFile}"
--value "
${directoryObtainedFiles}\\rates-per-country.csv"
ifFile --file "
${pathCsvFile}" fileExists=value
if --left "
${fileExists}"
--operator "Is_True"
--negate getColumnName --dataTable ${ratesForCountries} --index 1 countriesColumnName=value
getColumnName --dataTable ${ratesForCountries} --index 2 rateColumnName=value
writeToFile --value "
${countriesColumnName},
${rateColumnName}"
--file "
${pathCsvFile}"
--encoding "Default"
endIfnextwriteToFile --value "$countriesColumn},
${rateColumn}"
--file "
${directoryObtainedFiles}\\rates-per-country.csv"
--encoding "Default"
--writeasnewlinewebSetComboBox --selectoptionby "Value"
--value "WEX Academy Inc.</ li>"
--selector "Id"
--id country
--timeout "00:01:00"
webGet --selector "CssSelector"
--css "body > div > div.cinsert > div > div.innercontainer > div.inneritem1"
--timeout "00:01:00" companyData=value
writeToFile --value "
${companyData}"
--file "
${directoryObtainedFiles}\\text-data-company.txt"
--encoding "Default"
--overwritewebGetImage --selector "CssSelector"
--css "body > div > div.cinsert > div > div.innercontainer > div.inneritem2 > img"
--timeout "00:01:00" graphCompany=value
saveImage --image ${graphCompany} --directory "
${directoryObtainedFiles}"
--file "company-graph"
--format "Jpeg"
webClose --name "
${instanceName}"
------------------------------
ding wei
------------------------------