Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8816543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:38:45+00:00 2026-06-14T04:38:45+00:00

I am using WatiN to click links in the browser based on the string

  • 0

I am using WatiN to click links in the browser based on the string i pull off the site.

The problem is that some of the text it pulls is off of multiple lines, so it combines the string into 1 word. example:
“Ultra Corrosion-Resistant Coated Alloy Steel” becomes “Ultra Corrosion-ResistantCoated Alloy Steel”

I am trying to split the string by all capital letters except ones that are hyphenated, so that i can start searching for links by portions of the string.

this is what i have so far

              types = doc.DocumentNode.SelectNodes("//h3[@class='AbbrPrsnttn_PrsnttnNm']");
                foreach (HtmlNode type in types)
                {
                    desc = type.InnerText.CleanText();

                    if (browser.Div(Find.ById("ProdPrsnttnGrpCntnr")).Element(Find.ByText(desc)).Exists)
                    {
                        browser.Div(Find.ById("ProdPrsnttnGrpCntnr")).Element(Find.ByText(desc)).Click();
                        System.Threading.Thread.Sleep(5000);
                        types = doc.DocumentNode.SelectNodes("//h3[@class='AbbrPrsnttn_PrsnttnNm']");
                        doc2.LoadHtml(browser.Html);
                        partTable = doc2.DocumentNode.SelectSingleNode("//div[@class='ItmTblGrp']");

                        MineNext(doc, doc2, browser, typeUrl, types, desc, partTable);
                    }

                    else
                    {
                        split = desc.Split(new Char[] { ' ' });

                    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:38:46+00:00Added an answer on June 14, 2026 at 4:38 am

    Here is an example of how it might be achieved:

    Updated to also separate numbers.

    using System;
    using System.Text;
    
    namespace SplitOnUppercase
    {
        class Program
        {
            static void Main()
            {
                const string text = "Test42-10 UltraCorrosion-ResistantCoated Alloy-SteelNumberTest42";
                var result = new StringBuilder(text.Length);
                for (var i = 0; i < text.Length - 1; i++)
                {
                    result.Append(text[i]);
                    if (text[i] != ' ' && text[i] != '-' && (char.IsUpper(text[i + 1]) || !char.IsDigit(text[i]) && char.IsDigit(text[i + 1])))
                        result.Append(' ');
                }
                result.Append(text[text.Length - 1]);
    
                Console.WriteLine(result);
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using WatiN to parse my web site. I have a button that starts
I'm using Watin to automate download file from a website. At some point a
I am using Watin 2.0 to develop some automated UI tests. I cannot get
I'm using Watin for browser testing, which has to run on the UI thread.
I am using Watin to do some automated testing and I am running IE
I am using watin for some UI testing. In one of the testing, I
I'm using Specflow with NUnit and WatiN to do some acceptance testing, and all
i am using WATIN (i am using 2 days...)to get any web site's content
I'm currently using WebAii and WatiN to try and automate some tests of a
I am using a watin dll to browse through a webpage, click on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.