'Find element by accessibility id is not working with id including special characters

I have an accessibility id "Somé elément – Tab 2 of 7" including special characters. How can I select this element using accessibility ID. I am using driver.FindElementsByAccessibilityId("Somé elément \u2013 Tab 2 of 7") is not working



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source