Hi, I’m working on this macro to create a playlist on spotify and add a song to the playlist.
The macro executes the login well, creates the new playlist, searches for the song to add, selects it to add it to the playlist, but the last click to assign the track to the playlist is done correctly by the console, but is not heard by the browser, and it is no longer heard even if I do it directly.
At this point if I manually do the same procedure of adding the track to the playlist, everything goes ok and now if I start the macro from add to playlist, everything goes ok and the browser hears the click that it didn’t hear before.
Does anyone know why?
This is the link to the csv file
https://drive.google.com/open?id=1GnVZ_UHnMT4pvkpk9LLpq90ZFoXp_MfB
This is the code:
{
"Name": "Plist error",
"CreationDate": "2019-11-22",
"Commands": [
{
"Command": "comment",
"Target": "https://open.spotify.com/browse/featured",
"Value": ""
},
{
"Command": "open",
"Target": "https://accounts.spotify.com/it/login?continue=https:%2F%2Fopen.spotify.com%2Fbrowse%2Ffeatured",
"Value": ""
},
{
"Command": "comment",
"Target": "read csv",
"Value": ""
},
{
"Command": "csvRead",
"Target": "SpotifyDataTestCopy.csv",
"Value": ""
},
{
"Command": "type",
"Target": "id=login-username",
"Value": "${!COL1}"
},
{
"Command": "type",
"Target": "id=login-password",
"Value": "${!COL2}"
},
{
"Command": "comment",
"Target": "login",
"Value": ""
},
{
"Command": "clickAndWait",
"Target": "id=login-button",
"Value": ""
},
{
"Command": "comment",
"Target": "create playlist",
"Value": ""
},
{
"Command": "clickAt",
"Target": "xpath=//*[@id=\"main\"]/div/div[4]/div[1]/nav/div[2]/div/div/div/button/span",
"Value": "16,10"
},
{
"Command": "csvRead",
"Target": "SpotifyDataTestCopy.csv",
"Value": ""
},
{
"Command": "type",
"Target": "xpath=//*[@id=\"main\"]/div/div[5]/div/div[1]/div/div/input",
"Value": "${!COL3}"
},
{
"Command": "clickAt",
"Target": "xpath=//*[@id=\"main\"]/div/div[5]/div/div[2]/div[2]/button",
"Value": "47,18"
},
{
"Command": "comment",
"Target": "search song",
"Value": ""
},
{
"Command": "clickAt",
"Target": "xpath=//*[@id=\"main\"]/div/div[4]/div[1]/nav/ul/li[2]/div/a/div/span",
"Value": "23,11"
},
{
"Command": "csvRead",
"Target": "SpotifyDataTestCopy.csv",
"Value": ""
},
{
"Command": "type",
"Target": "xpath=//*[@id=\"searchPage\"]/div/div[1]/label/input",
"Value": "${!COL4}"
},
{
"Command": "clickAt",
"Target": "xpath=//*[@id=\"searchPage\"]/div/div[2]/section[1]/div/div[2]/div/div/div/div[4]",
"Value": "88,89"
},
{
"Command": "comment",
"Target": "add to playlist",
"Value": ""
},
{
"Command": "clickAt",
"Target": "xpath=//*[@id=\"main\"]/div/div[4]/div[3]/footer/div/div[3]/div/div/div[1]/div/button",
"Value": "16,18"
},
{
"Command": "clickAt",
"Target": "xpath=//*[@id=\"main\"]/div/div[4]/div[2]/div[1]/div/div/section/div/section/ol/div/div/li/div[3]/div/div/button/div",
"Value": "24,16"
},
{
"Command": "clickAt",
"Target": "xpath=//*[@id=\"main\"]/div/nav[1]/div[4]",
"Value": "142,14"
},
{
"Command": "clickAt",
"Target": "css=#main > div > div.dialog.dialog--without-background > div > div > div > div.container-fluid.container-fluid--noSpaceAround > div > div > div > div > div > div > div > div.react-contextmenu-wrapper > div > div:nth-child(2) > div > svg",
"Value": "12,9"
}
]
}