SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    May 2007
    Posts
    123
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to read the value of td using selenium WebDriver

    Hi,

    I wanted to read the value"No data returned for this view. This might be because the applied filter excludes all data." and need to perform some action. Can you Please tell me how can I read "No data returned for this view. This might be because the applied filter excludes all data."

    Below is the html

    <table class="empty-view-grid" cellspacing="0" cellpadding="0" border="0">
    <tbody>
    <tr>
    <td>
    <br>
    No data returned for this view. This might be because the applied filter excludes all data.
    <br>

  2. #2
    Apprentice
    Join Date
    May 2014
    Posts
    27
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    I am not sure what you are trying to do here. Are you looking for the xpath? This guide will help - XPath Tutorial. Are you looking to do an assert against that value with an information method?

  3. #3
    Member
    Join Date
    Dec 2011
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0
    try with getText();

  4. #4
    SQA Knight
    Join Date
    May 2006
    Location
    Playa Del Rey, California, United States
    Posts
    2,594
    Post Thanks / Like
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0
    Might be easier to ask the devs to add some <span> or <div> tags around the text to make it easier to locate. given that it's a free text node that's intermingled with other nodes, it makes it hard to select using xpath or css. I believe there is a way to select it using xpath, but you might have to do it in the javascript layer since selenium is more in tune with returning HTML elements than free text nodes.
    David Lai
    SDET / Consultant
    LinkedIn profile

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 08:20 AM.

Copyright BetaSoft Inc.