Question

web automation package - get text/ get value returns nothing

  • 14 July 2022
  • 2 replies
  • 16 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

Badge +4

@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

Thanks @Sumit Kumar​ ,

 

the first option worked fine for me

 

Reply