我尝试在如下所示的Selenium脚本中将IWebElement转换为SelectElement:..。但我得到以下错误提示:System.InvalidCastException : Unable to cast transparent proxy to type 'OpenQA.Selenium.Support.UI.SelectElement'。
int port = 12345;Server.Start(**TransparentProxy.CreateProxy**);public class TransparentProxy : ProxyLogic public TransparentProxy(HttpSocket clientSocket)
Check: HTTP checkerSuggestion: Check the connection to your http host or transparentProxyCheck: HTTP checkerSuggestion: Check the connection to your http host or transparentProxyCheck: HTTP checkerSugg
TIdSSLIOHandlerSocketOpenSSL.Create(nil); // does not seem to do anything LHandler.TransparentProxy.Port:=8084;
LHandler.TransparentProxy.Enabled:=true