Microsoft Technologies based on the .NET software framework. Miscellaneous topics that do not fit into specific categories.
I need a help in extracting string from a variable .Net
Abhijith Ganekal
0
Reputation points
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 | .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.
Sign in to answer