Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Click with openPageTreePath without success in small width #240

@ayacoo

Description

@ayacoo

Given is a very simple suite. One root page and one sub page. This is also visible in the normal backend via a browser.

The following screenshots.json is created for me

{
    "suites": {
        "CustomExtension": {
			"screenshots": {
				"_default": [
					{"action": "resizeWindow", "width": 1920, "height": 1080}
				],
				"BackendRootPage": [
					{"action": "see", "text": "Page"},
					{"action": "click", "link": "Page"},
					{"action": "makeScreenshotOfFullPage", "fileName": "BackendRootPage"}
				],
				"BackendRootPageContentElement": [
					{"action": "see", "text": "Page"},
					{"action": "click", "link": "Page"},
					{"action": "openPageTreePath", "path": ["Root"]},
					{"action": "makeScreenshotOfFullPage", "fileName": "BackendRootPageContentElement"}
				]
			}
        }
    }
}

I get the following error message with make-screenshots:

  [Facebook\WebDriver\Exception\ElementClickInterceptedException] element click intercepted: Element \<path class="chevron collapsed" d="M 4 3 L 13 8 L 4 13 Z" transform=" rotate(0)" style="fill: rgb(142, 142, 142);">\</path> is not clickable at point (264, 155). Other element would receive the click: \<div class="scaffold-content-overlay t3js-scaffold-content-overlay">\</div>
  (Session info: headless chrome=95.0.4638.69)                                                                                                                                                                                                                                                                                                    

Scenario Steps:

10. $I->openPageTreePath(["Root"])
 9. $I->click("Page",null)
 8. $I->see("Page",null)

In the first screenshot you can also see the reason quite well. An 800 width is used and the page tree is darkened. Trigger is the class scaffold-content-overlay t3js-scaffold-content-overlay

BackendRootPage

@media (min-width: 992px)
.scaffold-modulemenu-expanded .scaffold-content-overlay {
    display: none;
}

This class is treated differently again from 992px. I am unsure what to do here. Looks to me more like a bug in TYPO3, but maybe you can define the default width here in this tool without having to do that yourself in the screenshots.json?

And now I hope that I have been understood :-D

Metadata

Metadata

Assignees

No one assigned

    Labels

    Sweeping WeekdocumentationImprovements or additions to documentationquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions