Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #40934

Re: Synchronous XMLHttpRequest deprecated

From Arno Welzel <usenet@arnowelzel.de>
Newsgroups comp.lang.javascript
Subject Re: Synchronous XMLHttpRequest deprecated
Date 2022-06-27 09:31 +0200
Message-ID <jht4nbF25ebU1@mid.individual.net> (permalink)
References (12 earlier) <367f48c7-2d6b-4b24-960e-7159335b18c8n@googlegroups.com> <jhphk8Ff06mU1@mid.individual.net> <61643bc0-5a4d-4df2-ba58-52defb130141n@googlegroups.com> <jhrhoqFon7lU1@mid.individual.net> <70515c59-8595-4043-823c-452da4c6a0cbn@googlegroups.com>

Show all headers | 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


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