Hi I’m working on process where automating SAP fiori, I want to write data into SAP fiori table so for that I had tried with Type into but in was not working so tried with Click on cell where I want to type and using set text activity by passing exact table column and row index, I’m able to highlight particular cell properly in table but during execution & debug bot failing with error “Set Text - Text Type: Error HRESULT E_FAIL has been returned from a call to a COM component.”, can any one suggest what is the other option or what I’m missing here
1-Set Text, may not work well with certain elements (such as SAP Fiori’s complex table structure). In this case, you can try an alternative approach:
-
(Click) on the target cell to ensure it’s in focus.
-
Use (Send Hotkey)with keys like (TAB) (to move to the next field) or (Enter)(to finalize the input). You can send the text after clicking the cellSet Text may not work well with certain elements (such as SAP Fiori’s complex table structure). In this case, you can try an alternative approach:
-
(Click) on the target cell to ensure it’s in focus.
-
Use (Send Hotkey) with keys like(TAB) (to move to the next field) or (Enter) (to finalize the input). You can send the text after clicking the cell
***or -
(Anchor Base): Use an anchor (like a nearby label) to click on the specific cell in the table.
-
UI Explorer: Use the(UI Explorer) tool to capture the correct selector for the specific cell. Make sure the selector is dynamic and adjusts for the row and column you want to edit.
-
(Anchor Base): Use an anchor (like a nearby label) to click on the specific cell in the table.
-
(UI Explorer): Use the (UI Explorer) tool to capture the correct selector for the specific cell. Make sure the selector is dynamic and adjusts for the row and column you want to edit.
As per my experience, this happens when you try to set a string to a textbox with character length limit.
For example PO field have 10 character limit and you try to set 11 characters to the textbox.
Check this if you have longer string than the limit of textbox
no my string is having only 5character & it is working manually and it was working with bot also but suddenly started failing with error
I’m passing dynamic selector only bot perform click action also in cell where I want to type value
try this:
Click (Dynamic Selector for the cell)
Type Into (Dynamic Selector for the same cell)
Text: “Your Value”
SimulateType: True
Send Hotkey (TAB) to move to the next cell or Send Hotkey (ENTER) to confirm
Any blank spaces around the string? Tried trimming it?
it doesnt allow send hot key to use with SAP fiori it doesnt support
no even by passing that hardcoded also not working