Questions on BP

suryadss

New Member
Dear,

For the first question, I am helpless because By Using BP don't know much about it.

Coming to your 2nd question, You can write a value in a textbox by using write stage in Win32, HTML, AA modes.
For enter you can choose global send keys in HTML, AA modes whereas in region mode you must choose global send key events option.

Attached screenshots for your reference
 

Attachments

  • Global_send_key_events.PNG
    Global_send_key_events.PNG
    20.1 KB · Views: 26
  • Write_Stage.PNG
    Write_Stage.PNG
    24.2 KB · Views: 27

VJR

Well-Known Member
Hi @LearningRPA,

Regarding #1, please refer the below.
For #2, @suryadss has laid down the steps for you.

1.jpg: This is how the overall process diagram looks like.
2.jpg: The list of elements spied.
i. The main browser window (A blank IE window is fine. No need to open any URL)
ii. The Delete History dialog box (shown in Screenshot 4.jpg)
iii. The Preserve Favorites checkbox which you will see later below
iv. The Delete button
v. And the final confirmation window that says the cache has been deleted
It is a good practice to suffix the spying mode at the end of the element name.
Notice the _Win32 and _AA at the end of the element names.

- Launch the browser window using a Navigate stage.
- Wait for a while to allow the window to open. You can add your own Dynamic Wait here in case the window doesn't open throw an Exception or add retry logic.

3.jpg: Open the 'Delete History' window. The shortcut keys to open this window is Ctrl + Shift + Del.
Its 'Sendkeys' equivalent is "^+{DELETE}" where ^ stands for Control and + for Shift.
This will open up the window as shown in 4.jpg.

- Add a Dynamic Wait stage till the Delete History dialog box opens.

5.jpg: You need to (uncheck) write False to the first checkbox if you want to remove ALL the cookies and temporary internet files. (Go through what is written for that checkbox). So this is totally up to you if you want to delete everything what is mentioned for that checkbox. A Writer stage is used to write a False value.

6.jpg: Note, when this element was spied it was showing me as a Button in the red marked dropdown. So the 'Uncheck Preserve Favorites checkbox' Writer stage in 5.jpg was not allowing me to uncheck that checkbox. After spying, I have manually selected it to a Check box in the dropdown and then was able to Write False to it.

- Similarly check/uncheck other options as per your requirement in that dialog box after spying each of those checkboxes. I have not done that here.

7.jpg: Once done, Hit the Delete button.

- Add a Dynamic Wait stage to wait till the final delete confirmation dialog box appears. This may take time depending on the volume of history stored in the browser, based on when the cache was last deleted.

8.jpg: This is how the Delete confirmation dialog comes up at the bottom of the window.

Note, this confirmation box was spied using the AA mode. Refer 9.jpg.
You can add your own logic to check if the value shown in the dialog is the same as marked in red in the screenshot.

10.jpg: Once done close the browser window.
 

Attachments

  • 1. Process Diagram.JPG
    1. Process Diagram.JPG
    45.5 KB · Views: 25
  • 2. ElementsSpied.JPG
    2. ElementsSpied.JPG
    57.9 KB · Views: 22
  • 3. Delete History Window.JPG
    3. Delete History Window.JPG
    54.6 KB · Views: 23
  • 4. Actual window.JPG
    4. Actual window.JPG
    60.4 KB · Views: 22
  • 5. Uncheck first checkbox.JPG
    5. Uncheck first checkbox.JPG
    33.9 KB · Views: 22
  • 6. Set as Checkbox.jpg
    6. Set as Checkbox.jpg
    90.7 KB · Views: 20
  • 7. Hit Delete.JPG
    7. Hit Delete.JPG
    39.5 KB · Views: 19
  • 8. Delete confirmation window.JPG
    8. Delete confirmation window.JPG
    16.8 KB · Views: 19
  • 9. Confirmation prompt AA mode.jpg
    9. Confirmation prompt AA mode.jpg
    151.8 KB · Views: 19
  • 10. Close Browser.JPG
    10. Close Browser.JPG
    37.4 KB · Views: 19
Top