SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
29.73k stars 8.02k forks source link

[🐛 Bug]: Getting unwanted script error randomly while running selenium script with CRM dynamics 365 #14149

Open jaydjana87 opened 1 week ago

jaydjana87 commented 1 week ago

What happened?

We are running automation script with Selenium Java in CRM DYnamics 365 new look. We are getting unwanted Script error while running script but if we do same with manually we can't reproduce the issue. Laos sometime Save button is getting disappear from screen if we are running Selenium scrip Save button issue Script Error

How can we reproduce the issue?

Run Selenium script with Dynamics 365 new look (latest version)

Relevant log output

Error in Dynamics:
One of the scripts for this record has caused an error. For more details, download the log file.
Web resource method does not exist: Person.GetSetMaritalStatus. However the closest object we found is Person that contains these properties: _namespace,OnSave,OnChange,Common,ValidateExpectedGraduationDate,EducationPlanIEPDate,TriggerAZTECSWebJob,onLoad,setNotificationOnSubordinateRecord,ShowHidePersonNameReason,ShowHideTribalAffiliation,PartOfACPNotification,openArtifactForm,PersonMissingNotification,ShowHideNonCitizenType,CreateProviderVisibility,CreateProviderButtonVisibility,CreateProvider,CreatePersonSuccess,CreatePersonError,PopulateIEPDate,ViewSSNButtonClick,EnableDisableStaff,ShowPersonSummary,openRecordSummary,getPersonAddress,enableACPStatus,ShowHideBulkAddUpdateBtn. Please verify this object is not corrupt and is not an object of the same name defined elsewhere, such as another script.
Session Id: ad047f58-ba06-4e4b-ae10-78054c1ea8bb
Correlation Id: 376c36a7-87ca-4cf3-a98b-bb91b239c85d
Event Name: onchange
Function Name: Person.GetSetMaritalStatus
Web Resource Name: mcshhs_/Scripts/mcshhs_Person_OnLoad.js
Solution Name: Active
Publisher Name: DefaultPublisherguardianaz
Time: Thu Jun 06 2024 22:26:33 GMT+0530 (India Standard Time)

Operating System

Windows 11

Selenium version

Selenium 4.18.1 /Java 17

What are the browser(s) and version(s) where you see this issue?

Chrome Version 125.0.6422.113 (Official Build) (64-bit)

What are the browser driver(s) and version(s) where you see this issue?

Chrome Driver

Are you using Selenium Grid?

No

github-actions[bot] commented 1 week ago

@jaydjana87, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

github-actions[bot] commented 1 week ago

Hi, @jaydjana87. Please follow the issue template, we need more information to reproduce the issue.

Either a complete code snippet and URL/HTML (if more than one file is needed, provide a GitHub repo and instructions to run the code), the specific versions used, or a more detailed description to help us understand the issue.

Note: If you cannot share your code and URL/HTML, any complete code snippet and URL/HTML that reproduces the issue is good enough.

Reply to this issue when all information is provided, thank you.