Skip to main content
Cadet | Tier 2
July 14, 2022
Question

web automation package - get text/ get value returns nothing

  • July 14, 2022
  • 2 replies
  • 278 views

Hi All,

 

I'm working on a webpage automation and I'm using web automation package. There is some issue with the get text/ get value activity as I'm able to click that particular element using a custom CSS selector but, unable to retrieve data from that. Any thoughts would be helpful

 

visual-modern[data-automation-type="visual"]>div>svg[aria-label*="Total"]>g:first-child>text[class="value"]>tspan

 

I'm able to click the element using the above CSS selector but, unable to retrieve data from it

 

Thanks,

AK

    2 replies

    Navigator | Tier 3
    July 14, 2022

    @Ananthakrishnan K​ 

    Try "Get Details" action, which returns dictionary.

    and check the value against key 'text'

     

    OR

    Try "Execute JavaScript" action to get innerText or innerHTML

    Cadet | Tier 2
    July 14, 2022

    Thanks @Sumit Kumar​ ,

     

    the first option worked fine for me