Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: Synchronous XMLHttpRequest deprecated Date: Sun, 26 Jun 2022 19:02:19 +0200 Lines: 29 Message-ID: References: <5521ac06$0$2891$e4fe514c@news2.news.xs4all.nl> <3049656.CVpVeAz9R9@PointedEars.de> <5523844e$0$2868$e4fe514c@news.xs4all.nl> <4553250.RFBzHSfbcC@PointedEars.de> <5523d3ad$0$2946$e4fe514c@news.xs4all.nl> <2512383.9XA8ILVfRL@PointedEars.de> <5523ef84$0$2911$e4fe514c@news.xs4all.nl> <070420151603306966%timstreater@greenbee.net> <5523fc1b$0$2890$e4fe514c@news.xs4all.nl> <9585d114-082a-49b0-9c3c-185708e2a256n@googlegroups.com> <367f48c7-2d6b-4b24-960e-7159335b18c8n@googlegroups.com> <61643bc0-5a4d-4df2-ba58-52defb130141n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net jXIrWP/jagjkvqX7pjBUHQXhzMiZGbJcKXByInI34XGThTY1CZ Cancel-Lock: sha1:MY+UtGERQOeW+q+JXT+hrFuQ340= Content-Language: de-DE In-Reply-To: <61643bc0-5a4d-4df2-ba58-52defb130141n@googlegroups.com> Xref: csiph.com comp.lang.javascript:40931 Michael Haufe (TNO): > On Saturday, June 25, 2022 at 5:47:44 PM UTC-5, Arno Welzel wrote: >> Michael Haufe (TNO): >>> On Saturday, June 25, 2022 at 5:07:06 AM UTC-5, Arno Welzel wrote: >>> >>>> What kind of *browsers* don't have a user interface? >>> >>> They are called Headless Browsers: >>> >>> >> Yes, I'm aware of this. But are these are relevant in this context? How >> many applications use headless browsers *and* need to use XMLHttpRequest? > > Applications that have an automated QA process use this often. You can test scenarios such as: > > "When the 'Clear Cart' button is clicked the associated users Shopping Cart is cleared" I dont't understand why this requires a syncronous XMLHttpRequest. Test tools like Cypress can wait for events. > You also have the use case of web scraping from batch scripts. Some CLIs don't support a proper DOM > such as PowerShell 7. And web scraping needs XMLHttpRequest? Why? -- Arno Welzel https://arnowelzel.de