Possible fix/workaround for Selenium on browser instances not being closed after the run (#1186). Change affects keywords RPA.Browser.Selenium.Open Available Browser and RPA.Browser.Selenium.Open Chrome Browser. Default behaviour can be changed by setting new parameter sandbox=True thus default Chromium argument --no-sandbox won't be set.
Improve RPA.Excel.Application.find() to allow selection of search_type (to search either within 'comments', 'values', 'comments' or 'comments threaded'), start_after (limit search area to be after this Range and exact (on True performs full match opposed to default partial match).
Improve RPA.Excel.Application.Open Workbook to allow loading workbooks from URLs.
Improve all RPA.*.Application.Quit Application keywords to perform garbage collecting before calling app.quit(), because otherwise exception can be triggered due to not all COM objects have not been released before app.quit().
Add rgb_to_excel_color(red, green, blue) method, which can be used to set suitable color for Excel Range.Font.Color and Range.Interior.Color
Example on opening URLs with RPA.Excel.Application library
# Open Robocorp course SalesData workbook
EXCEL.open_workbook("https://robotsparebinindustries.com/SalesData.xlsx")
results = lib.find("Name", search_type="values")
# Open workbook from Sharepoint
sharepoint_file_url = f"https://{SHAREPOINT_DOMAIN}.sharepoint.com/{SHAREPOINT_FOLDER_STRUCTURE}/test.xlsx"
EXCEL.open_workbook(sharepoint_file_url)
Example on formatting cells with RPA.Excel.Application library.
RPA.Browser.Selenium.Open Available Browser
andRPA.Browser.Selenium.Open Chrome Browser
. Default behaviour can be changed by setting new parametersandbox=True
thus default Chromium argument--no-sandbox
won't be set.RPA.Excel.Application.find()
to allow selection ofsearch_type
(to search either within 'comments', 'values', 'comments' or 'comments threaded'),start_after
(limit search area to be after thisRange
andexact
(onTrue
performs full match opposed to default partial match).RPA.Excel.Application.Open Workbook
to allow loading workbooks from URLs.RPA.*.Application.Quit Application
keywords to perform garbage collecting before callingapp.quit()
, because otherwise exception can be triggered due to not all COM objects have not been released beforeapp.quit()
.rgb_to_excel_color(red, green, blue)
method, which can be used to set suitable color for ExcelRange.Font.Color
andRange.Interior.Color
Example on opening URLs with
RPA.Excel.Application
libraryExample on formatting cells with
RPA.Excel.Application
library.Example on find improvements with
RPA.Excel.Application
library.Example on browser workaround with
RPA.Browser.Selenium
library.