Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #40934
Show key headers only | View raw
Michael Haufe (TNO): > On Sunday, June 26, 2022 at 12:02:27 PM UTC-5, Arno Welzel wrote: >> Michael Haufe (TNO): > >>> 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? > > You seem to be drifting or making a point that wasn't expressed clearly. > Which question are you asking? My question was, why *synchronous* XHR is *required* for tests or web scraping. I have done testing with headless browsers myself a lot and never needed *synchronous* XHR ever. Also "web scraping" means first of all just to send requests and wait for the result. There is no issue at all if this is done with asynchronous XHR. > If I'm in a browser (headless or otherwise) I can near trivially walk > the hyperlinks of the domain and collect information information such > as email addresses. It's just a DFS or BFS walk. The XHR object even > has the ability to provide a DOM as a result of a request directly > without parsing. And why does the XHR to be synchronous? -- Arno Welzel https://arnowelzel.de
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Synchronous XMLHttpRequest deprecated Robert Zeurunkl <bzeurunkl@gmail.com> - 2022-06-22 16:44 -0700
Re: Synchronous XMLHttpRequest deprecated doctor@doctor.nl2k.ab.ca (The Doctor) - 2022-06-23 00:27 +0000
Re: Synchronous XMLHttpRequest deprecated Jan Bruns <ebay@abnuto.de> - 2022-06-23 08:46 +0000
Re: Synchronous XMLHttpRequest deprecated Scott Sauyet <scott@sauyet.com> - 2022-06-24 07:43 -0700
Re: Synchronous XMLHttpRequest deprecated Arno Welzel <usenet@arnowelzel.de> - 2022-06-25 12:06 +0200
Re: Synchronous XMLHttpRequest deprecated "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2022-06-25 09:47 -0700
Re: Synchronous XMLHttpRequest deprecated Arno Welzel <usenet@arnowelzel.de> - 2022-06-26 00:47 +0200
Re: Synchronous XMLHttpRequest deprecated "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2022-06-26 09:38 -0700
Re: Synchronous XMLHttpRequest deprecated Arno Welzel <usenet@arnowelzel.de> - 2022-06-26 19:02 +0200
Re: Synchronous XMLHttpRequest deprecated "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2022-06-26 15:38 -0700
Re: Synchronous XMLHttpRequest deprecated Arno Welzel <usenet@arnowelzel.de> - 2022-06-27 09:31 +0200
Re: Synchronous XMLHttpRequest deprecated "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2022-06-28 10:48 -0700
Re: Synchronous XMLHttpRequest deprecated The Natural Philosopher <tnp@invalid.invalid> - 2022-06-27 17:49 +0100
Re: Synchronous XMLHttpRequest deprecated Arno Welzel <usenet@arnowelzel.de> - 2022-06-28 09:41 +0200
Re: Synchronous XMLHttpRequest deprecated The Natural Philosopher <tnp@invalid.invalid> - 2022-06-28 11:59 +0100
Re: Synchronous XMLHttpRequest deprecated Arno Welzel <usenet@arnowelzel.de> - 2022-06-28 15:19 +0200
Re: Synchronous XMLHttpRequest deprecated John Harris <niam@jghnorth.org.uk.invalid> - 2022-06-28 18:27 +0100
Re: Synchronous XMLHttpRequest deprecated The Natural Philosopher <tnp@invalid.invalid> - 2022-06-28 18:42 +0100
Re: Synchronous XMLHttpRequest deprecated The Natural Philosopher <tnp@invalid.invalid> - 2022-06-27 17:49 +0100
Re: Synchronous XMLHttpRequest deprecated Arno Welzel <usenet@arnowelzel.de> - 2022-06-28 09:40 +0200
Re: Synchronous XMLHttpRequest deprecated The Natural Philosopher <tnp@invalid.invalid> - 2022-06-28 11:48 +0100
Re: Synchronous XMLHttpRequest deprecated Arno Welzel <usenet@arnowelzel.de> - 2022-06-28 15:20 +0200
csiph-web