Selenium: Get all visible text in Tableau view

Home Forums Linux Club Forum Selenium: Get all visible text in Tableau view

This topic contains 0 replies, has 1 voice, and was last updated by  kavyasahu 1 year ago.

  • Author
  • #1007


    I am trying to get all visible text from a Tableau view using Selenium Training. I define all visible text as any text that can be searched using any browser’s search functionality (i.e. Ctrl+F).

    I have already searched many other answers to related questions but none of them worked for my case. I tried the top answer from here. It doesn’t work for me from the very start since my browser.page_source contains no visible text. Here are the contents of my browser.page_source:

    <!DOCTYPE html><html xmlns:ng=”” xmlns:tb=””><head><style type=”text/css”>@charset “UTF-8″;[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style><meta charset=”UTF-8″><meta http-equiv=”X-UA-Compatible” content=”IE=edge”><meta name=”viewport” content=”width=1024, maximum-scale=1.3″><meta name=”apple-itunes-app” content=”app-id=434633927″><meta name=”format-detection” content=”telephone=no”>var BuildId = ‘9qu3thidy901n388pewixusor’;
    var StaticAssetsUrlPrefix = ”;<link rel=”stylesheet” type=”text/css” href=”vizportal.css?9qu3thidy901n388pewixusor”></head><body class=”tb-body”><span class=”ng-isolate-scope”></span><!– ngRepeat: stackedElement in stackedElements –><span props=”stackedComponentsProps” class=”ng-isolate-scope”></span></div></body></html>
    Also tried the top answer here. Obviously, this didn’t work as there’s no text inside the body as you can see in the page source above.

    What is the correct way to get the visible text in these circumstances?

You must be logged in to reply to this topic.