I am having different names on the website with name. i want to parse all the names in the and to as a text in box using and c#.

I tried using findelement but it paste’s only first name. I don’t know how to use . try to help

        driver.SwitchTo().Window(driver.WindowHandles.Last());
        var txt1 = Driver.FindElement(By.ClassName("header")).Text;
        var value = Regex.Split(txt1, @"W")[0];            
        1.Text = value;



Source link https://sqa.stackexchange.com/questions/35461/i-want-to--list-of-similar-class-name-in-a--page-using-findelements-se

LEAVE A REPLY

Please enter your comment!
Please enter your name here