I am trying to extract a link from https://www.connectedpapers.com. Ive tried to use storeAttribute but it seems I cant get my head on how to operate it. I also tried store text with the xpath but I cant get it right.
So far I have
{
"Name": "copy",
"CreationDate": "2021-4-12",
"Commands": [
{
"Command": "open",
"Target": "https://www.connectedpapers.com/",
"Value": ""
},
{
"Command": "click",
"Target": "xpath=//*[@id=\"desktop-app\"]/div[2]/div/div/div/div/div/div/input",
"Value": "",
"Targets": [
"xpath=//*[@id=\"desktop-app\"]/div[2]/div/div/div/div/div/div/input",
"xpath=//div[2]/div/div/div/div/div/div/input",
"css=#desktop-app > div.basic-page.main-router > div.main-container.landing-page-container > div.landing_search_bar > div > div > div.flexrow.autocomplete-searchbar-round-cont > div > input"
]
},
{
"Command": "type",
"Target": "xpath=//*[@id=\"desktop-app\"]/div[2]/div/div/div/div/div/div/input",
"Value": "water",
"Targets": [
"xpath=//*[@id=\"desktop-app\"]/div[2]/div/div/div/div/div/div/input",
"xpath=//div[2]/div/div/div/div/div/div/input",
"css=#desktop-app > div.basic-page.main-router > div.main-container.landing-page-container > div.landing_search_bar > div > div > div.flexrow.autocomplete-searchbar-round-cont > div > input"
]
},
{
"Command": "click",
"Target": "xpath=//*[@id=\"desktop-app\"]/div[2]/div/div/div/div/div/button/div",
"Value": "",
"Targets": [
"xpath=//*[@id=\"desktop-app\"]/div[2]/div/div/div/div/div/button/div",
"xpath=//div[2]/div/div/div/div/div/button/div",
"css=#desktop-app > div.basic-page.main-router > div.main-container.landing-page-container > div.landing_search_bar > div > div > div.flexrow.autocomplete-searchbar-round-cont > button > div"
]
},
{
"Command": "click",
"Target": "xpath=//*[@id=\"desktop-app\"]/div[2]/div/article/div/div/div/div",
"Value": "",
"Targets": [
"xpath=//*[@id=\"desktop-app\"]/div[2]/div/article/div/div/div/div",
"xpath=//article/div/div/div/div",
"css=#desktop-app > div.basic-page.main-router > div > article:nth-child(2) > div > div > div.meta-data > div.search-result-authors"
]
},
{
"Command": "click",
"Target": "id=circle_60fa3053f2db749a11a55755348293991c84a1a2",
"Value": "",
"Targets": [
"id=circle_60fa3053f2db749a11a55755348293991c84a1a2",
"xpath=//*[@id=\"circle_60fa3053f2db749a11a55755348293991c84a1a2\"]",
"css=#circle_60fa3053f2db749a11a55755348293991c84a1a2"
]
},
{
"Command": "storeText",
"Target": "xpath=//*[@id="open-in-container"]/div/div/a[2]]/",
"Value": "LINK"
}
]
}
I know the problem is in the last step, Iver tried Xpath, full Xpath, and storeAttribute but I am sure I am doing something wrong.
Edit:
The link I am trying to get is here: