Telerik 2024 will open browser with navigator.permissions "clipboard-write" denied which caused copy failed in automation

1 Answer 53 Views
Chrome
Jun
Top achievements
Rank 1
Iron
Iron
Jun asked on 22 Oct 2024, 05:19 AM

Hi Team,

Our test application use java script navigator.clipboard.writetext  to copy content into clipboard, when we run cases with telerik 2024, some scenario pops error "fail to copy", the exception for java script is "NotAllowedError: Failed to execute 'writeText' on 'Clipboard': Write permission denied.".

After check, we can see it's because clipboard-write is denied when telerik open browser, but if we manually open the browser, it's fine. Only failed for browser which is opened by telerik.

You can use below example code to check in browsers which is opened by telerik.

test code:

// Initialize the settings

mySettings = new Settings();

// Set the default browser

mySettings.Web.DefaultBrowser = BrowserType.Chrome;  // we can change the two lines for different scenario test

mySettings.Web.UseBrowserExtension = false;

myManager = new Manager(mySettings);

// Start the manager

myManager.Start();

// Launch a new browser instance. [This will launch an IE instance given the setting above]

myManager.LaunchNewBrowser();

myManager.ActiveBrowser.NavigateTo("https://www.telerik.com");

when the browser is opened, you can execute below script in develop tools.

await navigator.permissions.query({

        name: 'clipboard-write',

    });

Below is what I have summary for telerik 2024 and 2022, please help to confirm if all the the denied scenarios are expected.

Thanks,

Jun

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 22 Oct 2024, 07:07 AM

Hello Jun,

Thank you for sharing your findings. 

The issue is a bug on our end, therefore the thread was converted to a bug report in our public feedback portal. Find here the public item you can follow for updates on the case.

Regards,
Elena
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Jun
Top achievements
Rank 1
Iron
Iron
commented on 23 Oct 2024, 01:59 AM

Hi Elena, 

Thanks for feedback. I couldn't find the ticket before, so re-raised this one~ Now got it. Will wait for team's fix.

Thanks,

Jun

Tags
Chrome
Asked by
Jun
Top achievements
Rank 1
Iron
Iron
Answers by
Elena
Telerik team
Share this question
or