storeText help needed

First, please pardon if I have simply missed the syntax for this in the docs. I feel I combed through the docs as best I could, and have most everything working except the case one case.

I have the data similar to the following:

                <h1>Search Results - Details</h1>
            <div class="searchResults">
                <div id="divTopName">
                    <div class="detailsBox">
                        <h2>
                            Johnny Noname
                        </h2>
                        <div class="DetailsPhone">
                            <strong>Phone:</strong>
                            123-456-7891
                            &nbsp;
                        
                            <br />
                            <!-- Program Phone -->
                            
                            
                            
                            
                            <strong>Fax:</strong>
                            123-456-7890
                            <br />
                            <div id="divEmmail">
                                <strong>Email:</strong>
                                <a id="lnkEmail" href="mailto:johnny.noname@some.place">johnny.noname@some.place</a>
                                
                            </div>
                        </div>
                        <div class="DetailsOther">
                            
                                    
                                    Some Funny Title<br />
                                
                                
                            
                            <br />
                            
                            
                        </div>
                    </div>
                </div>
                <!-- school main info/address -->
                <div class="detailsBox">
                    <h2>
                        A Long Proper Name
                    </h2>
                    <div class="DetailsPhone">
                        <strong>Enrollment:</strong>
                        4600
                        <br />
                        <strong>Colors:</strong>
                        Purple, white
                        <br />
                        <strong>Nickname:</strong>
                        Nickiesname
                        <br />
                        
                        <strong>Web:</strong>
                        <a id="hlWebAddress" href="http://www.some.place">www.some.place</a>
                        <br />
                    </div>
                    <div class="DetailsOther">
                        Some Special Events Center
                        <br />
                        City
                        ,&nbsp;
                    AZ
                        &nbsp;&nbsp;
                    12345
                        -0000
                        <br />
                        <strong>Crazy Phone: </strong>
                        123-456-7890
                        <br />
                        <strong>Fax:</strong>
                        123-456-7892
                        <br />
                        <strong>Division: </strong>
                        Foobar
                        <br />
                        <strong>Something: </strong>
                        Somestring
                    </div>
                    <br class="easyclear" />
                </div>

I am looking to parse out data like Name, Title, Phone, Address, Org, etc. I have the following bit of code thats working for most things but is having issues with Address and Phone. The difference is the use of text in the block.

    {
  "Command": "storeText",
  "Target": "css=div.DetailsOther",
  "Value": "title"
},
{
  "Command": "storeText",
  "Target": "//*[@id=\"form1\"]/div[5]/div[2]/h2",
  "Value": "org"
},
{
  "Command": "storeText",
  "Target": "id=lnkEmail",
  "Value": "email"
},
{
  "Command": "storeText",
  "Target": "css=div.DetailsPhone",
  "Value": "address"
},

I have also tried using Chrome to give me the xpath for a particular element, and find Kantu breaks as follows:

[info]
Executing: | storeText | //*[@id=“form1”]/div[5]/div[2]/div[2]/text()[1] | address |
[error]
Cannot read property ‘toUpperCase’ of undefined

Any help is appreciated. Again, please pardon my newbie attempts here, this is my first project with this toolkit, and so far so good. Everything works in this case save this one worry some element of being able to fetch out the blocks for Address and Phone.

Thanks
James

1 Like

Why is there no support / reply on this problem being faced? :roll_eyes:

…maybe because there is no website link provided, so nobody can test it?