Skip to main content
Question

web automation package - get text/ get value returns nothing


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

Forum|alt.badge.img+6
  • Navigator | Tier 3
  • 142 replies
  • 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


Thanks @Sumit Kumar​ ,

 

the first option worked fine for me

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings