Description
here is my prompt:
. Perform File Sharing Operations
-
Wait for OneDrive Page to load completely.
-
Wait 3-5 seconds for the files to load in the OneDrive interface.
-
In the left sidebar, click the item labeled "My files" (with the folder icon below Home).
-
Wait for the files to load in the main area.
-
Hover slightly left of the file named "Automation_test" in the file list.
-
Click the three dots (ellipsis) next to the file name "Automation_test".
-
Wait for the dropdown menu to appear.
-
Click on "Share" from the dropdown menu.
-
After clicking "Share" from the dropdown menu, wait for 5 seconds.
-
Locate the iframe with the XPath: "//iframe[@id='shareFrame']".
-
Switch context to this iframe before proceeding further.
-
Inside the iframe:
- Locate the input field using the css selector: [placeholder='Add a name, group, or email']
- Click on the input field to focus.
- Use keyboard events to type: "autotest2@qascope.onmicrosoft.com" into the input field.
- Wait for dropdown to appear
- Press the Enter key to select it.
- Wait until the blue "Send" button is visible.
- Click on the blue "Send" button.
-
Wait for a confirmation message or UI feedback indicating the share was successful.
But still its not be able to switch to iframe and perform the certain actions.