Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: DOM representation of control 'Element sap.m.Input#__input2-__clone54-__clone83' has no focus DOM reference #592

Closed
bkrencker opened this issue Feb 22, 2024 · 5 comments
Labels

Comments

@bkrencker
Copy link

bkrencker commented Feb 22, 2024

When changing a cell value of a table using iChangeRow() there is an error message when test script is running headless in pipeline. When running locally in browser there is no error.

This is the same Error as in auto-closed issue #545 where you find more details and screenshots:
Issue 545

I was trying both options of iChangeRow() with and without optional parameter bInputNotFinalized
When.onTheDetailPage.onTable({property: "orderLines", qualifier: "Positionen"}).iChangeRow({product_productNr: "1000801", quantity: "3"}, {quantity: "6"}, true)

When.onTheDetailPage.onTable({property: "orderLines", qualifier: "Positionen"}).iChangeRow({product_productNr: "1000801", quantity: "3"}, {quantity: "6"})

Error Message:

"Changing row values of table '{id: fe::table::orderLines::LineItem::Positionen}' with old values='{product_productNr: 1000801, quantity: 3}' to new values='{quantity: 6}' - FAILURE Failure in Opa success function Exception thrown by the testcode:'Error: DOM representation of control 'Element sap.m.Input#__input2-__clone54-__clone83' has no focus DOM reference Error: DOM representation of control 'Element sap.m.Input#__input2-__clone54-__clone83' has no focus DOM reference at constructor.$ ([https://ui5.sap.com/1.120.1/resources/sap/ui/test/actions/Action.js:6:1158) ](https://ui5.sap.com/1.120.1/resources/sap/ui/test/actions/Action.js:6:1158)/n) at constructor.executeOn ([https://ui5.sap.com/1.120.1/resources/sap/ui/test/actions/EnterText.js:6:719) ](https://ui5.sap.com/1.120.1/resources/sap/ui/test/actions/EnterText.js:6:719)/n) at Object.executeOn ([https://ui5.sap.com/1.120.1/resources/sap/fe/test/builder/MdcTableBuilder.js:1202:20) ](https://ui5.sap.com/1.120.1/resources/sap/fe/test/builder/MdcTableBuilder.js:1202:20)/n) at [https://ui5.sap.com/1.120.1/resources/sap/ui/test/pipelines/ActionPipeline.js:6:353 ](https://ui5.sap.com/1.120.1/resources/sap/ui/test/pipelines/ActionPipeline.js:6:353/n) at Array.forEach (<anonymous>) at [https://ui5.sap.com/1.120.1/resources/sap/ui/test/pipelines/ActionPipeline.js:6:331 ](https://ui5.sap.com/1.120.1/resources/sap/ui/test/pipelines/ActionPipeline.js:6:331/n) at Array.forEach (<anonymous>) at c.process ([https://ui5.sap.com/1.120.1/resources/sap/ui/test/pipelines/ActionPipeline.js:6:309) ](https://ui5.sap.com/1.120.1/resources/sap/ui/test/pipelines/ActionPipeline.js:6:309)/n) at O ([https://ui5.sap.com/1.120.1/resources/sap/ui/test/OpaBuilder.js:6:2151) ](https://ui5.sap.com/1.120.1/resources/sap/ui/test/OpaBuilder.js:6:2151)/n) at Object.executeOn ([https://ui5.sap.com/1.120.1/resources/sap/ui/test/OpaBuilder.js:6:10873)' This](https://ui5.sap.com/1.120.1/resources/sap/ui/test/OpaBuilder.js:6:10873)'/nThis) is what Opa logged: Found 0 blocking out of 1106 tracked timeouts - sap.ui.test.autowaiter._timeoutWaiter#hasPending AutoWaiter syncpoint - sap.ui.test.autowaiter._autoWaiter Found view with ID 'orders::OrdersObjectPage' and viewName 'undefined' - sap.ui.test.Opa5 Found control with ID 'fe::table::orderLines::LineItem::Positionen' and controlType 'sap.ui.mdc.Table' in view 'sap.fe.templates.ObjectPage.ObjectPage' - sap.ui.test.Opa5 1 out of 1 controls met the matchers pipeline requirements

@Siolto
Copy link
Collaborator

Siolto commented Feb 26, 2024

Hi,

when it is only failing in the headless mode, could you please check the window-size? If you don't define something specifically the "invisible" browser starts with a viewport of only 800x600, which is to small for most of the responsive applications.

Regards
Simon

Copy link

hey 👋 - silence for 30 days 🤐 ... anybody? 😀

@github-actions github-actions bot added the stale label Mar 28, 2024
@bkrencker
Copy link
Author

Hi @Siolto thank you for your response. In the meantime I was checking different ways and what I found out that iChangeRow() is under no circumstances working on the ubuntu image.

When changing to the windows image or running locally on my windows machine it is working.

The window size is set to 1920, 1080. Also when it is set to lower resolution it is working on a windows machine.

Must be something that is different on ubuntu..

@github-actions github-actions bot removed the stale label Apr 3, 2024
Copy link

github-actions bot commented May 3, 2024

hey 👋 - silence for 30 days 🤐 ... anybody? 😀

@github-actions github-actions bot added the stale label May 3, 2024
Copy link

closed 📴 because silencio 🤫 since an additional 14 days after staleness 📠

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants