Inspectopedia 2025.3 Help

Public extension function on Driver/Finder/IdeaFrameUI in intelij.driver.tests

Reports public extension functions on Driver/Finder/IdeaFrameUI in test classes within the intellij.driver.tests module.

Public extension functions in the intellij.driver.tests module create maintainability issues because they:

  • Become visible to all tests across all contexts

  • Can lead to unclear test dependencies and harder maintenance

Recommended solutions:

  • Move the function to a private companion object

  • Relocate to an appropriate page object:

    • Generic page object for widely applicable functions

    • Specific page object for context-dependent functions

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

PublicTestExtensionFunction
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Plugin DevKit | Code

Inspection ID: PublicTestExtensionFunction

Suppressing Inspection

You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:

//noinspection PublicTestExtensionFunction

More detailed instructions as well as other ways and options that you have can be found in the product documentation:

Inspection Details

By default bundled with:

IntelliJ IDEA 2025.3, Qodana for JVM 2025.3,

Last modified: 03 December 2025