Share via

I need a help in extracting string from a variable .Net

Abhijith Ganekal 0 Reputation points
2023-05-31T12:19:55.5633333+00:00

Hi There,

Thanks in advance, I am new to C# coding language. I need help in extracting string from a variable.

string text = Driver.FindElement(By.XPath("//div[contains(@class,'testingStatus')]//h3[normalize-space()='Status']"));

I need this part from the above string

By.XPath("//div[contains(@class,'testingStatus')]//h3[normalize-space()='Status']")

Is it possible to achieve this in c#?

Developer technologies | .NET | Other
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.