MicrosoftEdge / EdgeWebDriver

Feedback and discussions about WebDriver for Microsoft Edge
MIT License
58 stars 7 forks source link

Edgedriver storage bucket listing XML is not updated since version 125.0 #146

Closed vania-pooh closed 5 months ago

vania-pooh commented 5 months ago

Edgedriver binaries are stored in a bucket here: https://msedgedriver.azureedge.net/ The only way to get a list of available driver versions in a script is parsing XML listing returned with GET https://msedgedriver.azureedge.net/ request. Since driver version 125.0 this listing is not updated. However on the official webdriver page you have newer versions like 125.0, 126.0 and so on: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/?form=MA13LH#downloads Please fix this listing to show newer versions or suggest another way to get a list of available browser versions. We are using Edgedriver in CI, so manually reading a web page is not a solution.

Screenshot 2024-05-28 at 18 19 18
vania-pooh commented 5 months ago

Ok, this is not an issue. This API https://msedgedriver.azureedge.net/ is a CDN over Azure Blob Storage (S3 bucket equivalent). In order to list all versions you have to iterate over blob storage keys like this:

curl -sL -H 'Accept: application/xml'  'https://msedgewebdriverstorage.blob.core.windows.net/edgewebdriver?comp=list&marker=XXX'

Value for marker parameter should be taken from /EnumerationResults/NextMarker key of XML output. When this value is empty, you should stop iterating over pages. Related docs: https://learn.microsoft.com/en-us/rest/api/storageservices/enumerating-blob-resources#Subheading2