fignet
November 14, 2019, 8:34pm
1
Hi everyone,
First of all, thanks for your support.
I’d like to know how I can get and storage a text inside an aria-label. I’m trying to get the number of stars from my Google Play page, but I can’t find a way to get the user’s stars. The link below is not my app.
Xpath provided by UI.V Kantu for the first review on the page:
//*[@id=“fcxH9b”]/div[4]/c-wiz/div/div[2]/div/div[1]/div/div/div[1]/div[2]/div/div[1]/div/div[2]/div[1]/div[1]/div/span[1]/div/div
I know how to use csvSave, but I’m just stuck in how to get the value inside the aria-label.
Thanks everyone.
fignet
November 15, 2019, 3:25am
2
After trying for a while, I came up with the following xPath, but I’m getting the error:
[error] Cannot read property ‘toUpperCase’ of undefined
JSON:
{
"Name": "Aria-label",
"CreationDate": "2019-11-14",
"Commands": [
{
"Command": "storeText",
"Target": "//*[@id=\"fcxH9b\"]/div[4]/c-wiz/div/div[2]/div/div[1]/div/div/div[1]/div[2]/div/div[1]/div/div[2]/div[1]/div[1]/div/span[1]/div/div/@aria-label",
"Value": "!csvLine"
},
{
"Command": "csvSave",
"Target": "test.csv",
"Value": ""
}
]
}
I hope it helps someone in the future. I will keep trying to get the value from aria-label attribute.