Skip to content

[🚀 Feature]: [dotnet] Statically generate atoms as native string instead of resources #16600

Closed

Description

@nvborisenko

Description

Continuation of #16592

Here we see that each time when user writes element.IsDisplayed, then underhood selenium determines executing assembly's name and reads the content from assembly resources. It is not optimal.

The resources are static, there is no need to read it again and again.

Solution

Generate some *.cs file as compilation unit.

internal static class MyResources
{
  public static const string IsDisplayedResource = "<this is generated during build stage>";
}

Why

  • Performance;
  • Recently bazel changed resource names, so be less dependent on its behavior.

Have you considered any alternatives or workarounds?

No response

Activity

  1. selenium-ci commented on Nov 15, 2025

    @selenium-ci
    Member

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

    Selenium Triage Team: remember to follow the Triage Guide

  2. nvborisenko commented on Nov 15, 2025

    @nvborisenko
    MemberAuthor

    Before doing it let's manually verify whether we face escaping issues (when we past files content as literals in C#).

  3. github-actions commented on Dec 18, 2025

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.

  4. locked and limited conversation to collaborators on Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!I-enhancementSomething could be better

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions