每当我在硒中了解隐式等待和显式等待概念时,我最常遇到“轮询 DOM”这句话。它到底意味着什么?我在google上搜索但没有找到相关答案。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Net;
using System.IO;
namespace SOAPServices
{
class Program
{
static void Main(string[] args)
{
CallWebService();
}
public static void CallWebService()
{
var _url = "http://exampleurl.svc";
var _action = "http://examplemethod";
XmlDocument soapEnvelopeXml = CreateSoapEnvelope();
HttpWebRequest webRequest = CreateWebRequest(_url, _action);
InsertSoapEnvelopeIntoWebRequest(soapEnvelopeXml, webRequest);
// begin async call to web request.
IAsyncResult asyncResult = webRequest.BeginGetResponse(null, null);
// suspend this thread until call is complete. You might want to
// do something …Run Code Online (Sandbox Code Playgroud)