-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
/
Copy pathOpenQA.Selenium.Support.Events.EventFiringWebDriver.html
2075 lines (1163 loc) · 84.5 KB
/
OpenQA.Selenium.Support.Events.EventFiringWebDriver.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Class EventFiringWebDriver </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Class EventFiringWebDriver ">
<meta name="description" content="A wrapper around an arbitrary WebDriver instance which supports registering for events, e.g. for logging purposes.">
<link rel="icon" href="../images/favicon.ico">
<link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
<meta name="docfx:navrel" content="../toc.html">
<meta name="docfx:tocrel" content="toc.html">
<meta name="docfx:rel" content="../">
<meta name="docfx:docurl" content="https://github.com/SeleniumHQ/selenium/new/trunk/apiSpec/new?filename=OpenQA_Selenium_Support_Events_EventFiringWebDriver.md&value=---%0Auid%3A%20OpenQA.Selenium.Support.Events.EventFiringWebDriver%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">
<meta name="loc:inThisArticle" content="In this article">
<meta name="loc:searchResultsCount" content="{count} results for "{query}"">
<meta name="loc:searchNoResults" content="No results for "{query}"">
<meta name="loc:tocFilter" content="Filter by title">
<meta name="loc:nextArticle" content="Next">
<meta name="loc:prevArticle" content="Previous">
<meta name="loc:themeLight" content="Light">
<meta name="loc:themeDark" content="Dark">
<meta name="loc:themeAuto" content="Auto">
<meta name="loc:changeTheme" content="Change theme">
<meta name="loc:copy" content="Copy">
<meta name="loc:downloadPdf" content="Download PDF">
<script type="module" src="./../public/docfx.min.js"></script>
<script>
const theme = localStorage.getItem('theme') || 'auto'
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
</script>
</head>
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
<header class="bg-body border-bottom">
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
<div class="container-xxl flex-nowrap">
<a class="navbar-brand" href="../index.html">
<img id="logo" class="svg" src="../images/logo.svg" alt="Selenium .NET API">
Selenium .NET API
</a>
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-three-dots"></i>
</button>
<div class="collapse navbar-collapse" id="navpanel">
<div id="navbar">
<form class="search" role="search" id="search">
<i class="bi bi-search"></i>
<input class="form-control" id="search-query" type="search" disabled placeholder="Search" autocomplete="off" aria-label="Search">
</form>
</div>
</div>
</div>
</nav>
</header>
<main class="container-xxl">
<div class="toc-offcanvas">
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<nav class="toc" id="toc"></nav>
</div>
</div>
</div>
<div class="content">
<div class="actionbar">
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
<i class="bi bi-list"></i>
</button>
<nav id="breadcrumb"></nav>
</div>
<article data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver">
<h1 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver" class="text-break">
Class EventFiringWebDriver <a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L32"><i class="bi bi-code-slash"></i></a>
</h1>
<div class="facts text-secondary">
<dl><dt>Namespace</dt><dd><a class="xref" href="OpenQA.html">OpenQA</a>.<a class="xref" href="OpenQA.Selenium.html">Selenium</a>.<a class="xref" href="OpenQA.Selenium.Support.html">Support</a>.<a class="xref" href="OpenQA.Selenium.Support.Events.html">Events</a></dd></dl>
<dl><dt>Assembly</dt><dd>WebDriver.Support.dll</dd></dl>
</div>
<div class="markdown summary"><p>A wrapper around an arbitrary WebDriver instance which supports registering for
events, e.g. for logging purposes.</p>
</div>
<div class="markdown conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public class EventFiringWebDriver : IWebDriver, ISearchContext, IDisposable, IJavaScriptExecutor, ITakesScreenshot, IWrapsDriver</code></pre>
</div>
<dl class="typelist inheritance">
<dt>Inheritance</dt>
<dd>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
<div><span class="xref">EventFiringWebDriver</span></div>
</dd>
</dl>
<dl class="typelist implements">
<dt>Implements</dt>
<dd>
<div><a class="xref" href="../webdriver/OpenQA.Selenium.IWebDriver.html">IWebDriver</a></div>
<div><a class="xref" href="../webdriver/OpenQA.Selenium.ISearchContext.html">ISearchContext</a></div>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
<div><a class="xref" href="../webdriver/OpenQA.Selenium.IJavaScriptExecutor.html">IJavaScriptExecutor</a></div>
<div><a class="xref" href="../webdriver/OpenQA.Selenium.ITakesScreenshot.html">ITakesScreenshot</a></div>
<div><a class="xref" href="../webdriver/OpenQA.Selenium.IWrapsDriver.html">IWrapsDriver</a></div>
</dd>
</dl>
<dl class="typelist inheritedMembers">
<dt>Inherited Members</dt>
<dd>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
</div>
<div>
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
</div>
</dd></dl>
<dl class="typelist extensionMethods">
<dt>Extension Methods</dt>
<dd>
<div>
<a class="xref" href="OpenQA.Selenium.Support.Extensions.WebDriverExtensions.html#OpenQA_Selenium_Support_Extensions_WebDriverExtensions_ExecuteJavaScript_OpenQA_Selenium_IWebDriver_System_String_System_Object___">WebDriverExtensions.ExecuteJavaScript(IWebDriver, string, params object?[])</a>
</div>
<div>
<a class="xref" href="OpenQA.Selenium.Support.Extensions.WebDriverExtensions.html#OpenQA_Selenium_Support_Extensions_WebDriverExtensions_ExecuteJavaScript__1_OpenQA_Selenium_IWebDriver_System_String_System_Object___">WebDriverExtensions.ExecuteJavaScript<T>(IWebDriver, string, params object?[])</a>
</div>
<div>
<a class="xref" href="OpenQA.Selenium.Support.Extensions.WebDriverExtensions.html#OpenQA_Selenium_Support_Extensions_WebDriverExtensions_TakeScreenshot_OpenQA_Selenium_IWebDriver_">WebDriverExtensions.TakeScreenshot(IWebDriver)</a>
</div>
</dd></dl>
<h2 class="section" id="constructors">Constructors
</h2>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver__ctor_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.#ctor*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver__ctor_OpenQA_Selenium_IWebDriver_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.#ctor(OpenQA.Selenium.IWebDriver)">
EventFiringWebDriver(IWebDriver)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L39"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="OpenQA.Selenium.Support.Events.EventFiringWebDriver.html">EventFiringWebDriver</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public EventFiringWebDriver(IWebDriver parentDriver)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>parentDriver</code> <a class="xref" href="../webdriver/OpenQA.Selenium.IWebDriver.html">IWebDriver</a></dt>
<dd><p>The driver to register events for.</p>
</dd>
</dl>
<h4 class="section">Exceptions</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></dt>
<dd><p>If <code class="paramref">parentDriver</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p>
</dd>
</dl>
<h2 class="section" id="properties">Properties
</h2>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_CurrentWindowHandle_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.CurrentWindowHandle*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_CurrentWindowHandle" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.CurrentWindowHandle">
CurrentWindowHandle
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L240"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Gets the current window handle, which is an opaque handle to this
window that uniquely identifies it within this driver instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public string CurrentWindowHandle { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_PageSource_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.PageSource*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_PageSource" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.PageSource">
PageSource
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L217"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Gets the source of the page last loaded by the browser.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public string PageSource { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<h4 class="section" id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_PageSource_remarks">Remarks</h4>
<div class="markdown level1 remarks"><p>If the page has been modified after loading (for example, by JavaScript)
there is no guarantee that the returned text is that of the modified page.
Please consult the documentation of the particular driver being used to
determine whether the returned text reflects the current state of the page
or the text last sent by the web server. The page source returned is a
representation of the underlying DOM: do not expect it to be formatted
or escaped in the same way as the response sent from the web server.</p>
</div>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Title_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Title*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Title" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Title">
Title
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L186"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Gets the title of the current browser window.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public string Title { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Url_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Url*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Url" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Url">
Url
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L148"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Gets or sets the URL the browser is currently displaying.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public string Url { get; set; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<h4 class="section" id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Url_remarks">Remarks</h4>
<div class="markdown level1 remarks"><p>Setting the <a class="xref" href="OpenQA.Selenium.Support.Events.EventFiringWebDriver.html#OpenQA_Selenium_Support_Events_EventFiringWebDriver_Url">Url</a> property will load a new web page in the current browser window.
This is done using an HTTP GET operation, and the method will block until the
load is complete. This will follow redirects issued either by the server or
as a meta-redirect from within the returned HTML. Should a meta-redirect "rest"
for any duration of time, it is best to wait until this timeout is over, since
should the underlying page change while your test is executing the results of
future calls against this interface will be against the freshly loaded page.</p>
</div>
<dl class="typelist seealso">
<dt>See Also</dt>
<dd>
<div><a class="xref" href="../webdriver/OpenQA.Selenium.INavigation.html#OpenQA_Selenium_INavigation_GoToUrl_System_String_">GoToUrl</a>(<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>)</div>
<div><a class="xref" href="../webdriver/OpenQA.Selenium.INavigation.html#OpenQA_Selenium_INavigation_GoToUrl_System_Uri_">GoToUrl</a>(<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uri">Uri</a>)</div>
</dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_WindowHandles_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.WindowHandles*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_WindowHandles" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.WindowHandles">
WindowHandles
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L262"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Gets the window handles of open browser windows.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public ReadOnlyCollection<string> WindowHandles { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.readonlycollection-1">ReadOnlyCollection</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>></dt>
<dd></dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_WrappedDriver_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.WrappedDriver*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_WrappedDriver" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.WrappedDriver">
WrappedDriver
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L132"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Gets the <a class="xref" href="../webdriver/OpenQA.Selenium.IWebDriver.html">IWebDriver</a> wrapped by this EventsFiringWebDriver instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IWebDriver WrappedDriver { get; }</code></pre>
</div>
<h4 class="section">Property Value</h4>
<dl class="parameters">
<dt><a class="xref" href="../webdriver/OpenQA.Selenium.IWebDriver.html">IWebDriver</a></dt>
<dd></dd>
</dl>
<h2 class="section" id="methods">Methods
</h2>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Close_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Close*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Close" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Close">
Close()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L284"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Close the current window, quitting the browser if it is the last window currently open.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void Close()</code></pre>
</div>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Dispose_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Dispose*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Dispose" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Dispose">
Dispose()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L404"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Frees all managed and unmanaged resources used by this instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public void Dispose()</code></pre>
</div>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Dispose_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Dispose*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Dispose_System_Boolean_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Dispose(System.Boolean)">
Dispose(bool)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L590"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Frees all managed and, optionally, unmanaged resources used by this instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected virtual void Dispose(bool disposing)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>disposing</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></dt>
<dd><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> to dispose of only managed resources;
<a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a> to dispose of managed and unmanaged resources.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_ExecuteAsyncScript_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.ExecuteAsyncScript*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_ExecuteAsyncScript_System_String_System_Object___" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.ExecuteAsyncScript(System.String,System.Object[])">
ExecuteAsyncScript(string, params object?[])
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L545"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Executes JavaScript asynchronously in the context of the currently selected frame or window.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public object? ExecuteAsyncScript(string script, params object?[] args)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>script</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The JavaScript code to execute.</p>
</dd>
<dt><code>args</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
<dd><p>The arguments to the script.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></dt>
<dd><p>The value returned by the script.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_ExecuteScript_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.ExecuteScript*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_ExecuteScript_OpenQA_Selenium_PinnedScript_System_Object___" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.ExecuteScript(OpenQA.Selenium.PinnedScript,System.Object[])">
ExecuteScript(PinnedScript, params object?[])
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L508"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Executes JavaScript in the context of the currently selected frame or window.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public object? ExecuteScript(PinnedScript script, params object?[] args)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>script</code> <a class="xref" href="../webdriver/OpenQA.Selenium.PinnedScript.html">PinnedScript</a></dt>
<dd><p>A <a class="xref" href="../webdriver/OpenQA.Selenium.PinnedScript.html">PinnedScript</a> object containing the code to execute.</p>
</dd>
<dt><code>args</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
<dd><p>The arguments to the script.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></dt>
<dd><p>The value returned by the script.</p>
</dd>
</dl>
<h4 class="section" id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_ExecuteScript_OpenQA_Selenium_PinnedScript_System_Object____remarks">Remarks</h4>
<div class="markdown level1 remarks"><p>
The ExecuteScript method executes JavaScript in the context of
the currently selected frame or window. This means that "document" will refer
to the current document. If the script has a return value, then the following
steps will be taken:
</p>
<p>
<ul><li>For an HTML element, this method returns a <a class="xref" href="../webdriver/OpenQA.Selenium.IWebElement.html">IWebElement</a></li><li>For a number, a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a> is returned</li><li>For a boolean, a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> is returned</li><li>For all other cases a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> is returned.</li><li>For an array,we check the first element, and attempt to return a
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List<T></a> of that type, following the rules above. Nested lists are not
supported.</li><li>If the value is null or there is no return value,
<a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> is returned.</li></ul>
<p>
Arguments must be a number (which will be converted to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a>),
a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>, a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> or a <a class="xref" href="../webdriver/OpenQA.Selenium.IWebElement.html">IWebElement</a>,
or a <a class="xref" href="../webdriver/OpenQA.Selenium.IWrapsElement.html">IWrapsElement</a>.
An exception will be thrown if the arguments do not meet these criteria.
The arguments will be made available to the JavaScript via the "arguments" magic
variable, as if the function were called via "Function.apply"
</p>
</div>
<h4 class="section">Exceptions</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></dt>
<dd><p>If <code class="paramref">script</code> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_ExecuteScript_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.ExecuteScript*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_ExecuteScript_System_String_System_Object___" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.ExecuteScript(System.String,System.Object[])">
ExecuteScript(string, params object?[])
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L445"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Executes JavaScript in the context of the currently selected frame or window.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public object? ExecuteScript(string script, params object?[] args)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>script</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd><p>The JavaScript code to execute.</p>
</dd>
<dt><code>args</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</dt>
<dd><p>The arguments to the script.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></dt>
<dd><p>The value returned by the script.</p>
</dd>
</dl>
<h4 class="section" id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_ExecuteScript_System_String_System_Object____remarks">Remarks</h4>
<div class="markdown level1 remarks"><p>
The ExecuteScript method executes JavaScript in the context of
the currently selected frame or window. This means that "document" will refer
to the current document. If the script has a return value, then the following
steps will be taken:
</p>
<p>
<ul><li>For an HTML element, this method returns a <a class="xref" href="../webdriver/OpenQA.Selenium.IWebElement.html">IWebElement</a></li><li>For a number, a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a> is returned</li><li>For a boolean, a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> is returned</li><li>For all other cases a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> is returned.</li><li>For an array,we check the first element, and attempt to return a
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List<T></a> of that type, following the rules above. Nested lists are not
supported.</li><li>If the value is null or there is no return value,
<a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> is returned.</li></ul>
<p>
Arguments must be a number (which will be converted to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a>),
a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a>, a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> or a <a class="xref" href="../webdriver/OpenQA.Selenium.IWebElement.html">IWebElement</a>,
or a <a class="xref" href="../webdriver/OpenQA.Selenium.IWrapsElement.html">IWrapsElement</a>.
An exception will be thrown if the arguments do not meet these criteria.
The arguments will be made available to the JavaScript via the "arguments" magic
variable, as if the function were called via "Function.apply"
</p>
</div>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_FindElement_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.FindElement*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_FindElement_OpenQA_Selenium_By_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.FindElement(OpenQA.Selenium.By)">
FindElement(By)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L349"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Find the first <a class="xref" href="../webdriver/OpenQA.Selenium.IWebElement.html">IWebElement</a> using the given method.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IWebElement FindElement(By by)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>by</code> <a class="xref" href="../webdriver/OpenQA.Selenium.By.html">By</a></dt>
<dd><p>The locating mechanism to use.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="../webdriver/OpenQA.Selenium.IWebElement.html">IWebElement</a></dt>
<dd><p>The first matching <a class="xref" href="../webdriver/OpenQA.Selenium.IWebElement.html">IWebElement</a> on the current context.</p>
</dd>
</dl>
<h4 class="section">Exceptions</h4>
<dl class="parameters">
<dt><a class="xref" href="../webdriver/OpenQA.Selenium.NoSuchElementException.html">NoSuchElementException</a></dt>
<dd><p>If no element matches the criteria.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_FindElements_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.FindElements*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_FindElements_OpenQA_Selenium_By_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.FindElements(OpenQA.Selenium.By)">
FindElements(By)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L376"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Find all <a class="xref" href="../webdriver/OpenQA.Selenium.IWebElement.html">IWebElements</a> within the current context
using the given mechanism.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public ReadOnlyCollection<IWebElement> FindElements(By by)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>by</code> <a class="xref" href="../webdriver/OpenQA.Selenium.By.html">By</a></dt>
<dd><p>The locating mechanism to use.</p>
</dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.readonlycollection-1">ReadOnlyCollection</a><<a class="xref" href="../webdriver/OpenQA.Selenium.IWebElement.html">IWebElement</a>></dt>
<dd><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.readonlycollection-1">ReadOnlyCollection<T></a> of all <a class="xref" href="../webdriver/OpenQA.Selenium.IWebElement.html">WebElements</a>
matching the current criteria, or an empty list if nothing matches.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_GetScreenshot_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.GetScreenshot*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_GetScreenshot" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.GetScreenshot">
GetScreenshot()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L575"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Gets a <a class="xref" href="../webdriver/OpenQA.Selenium.Screenshot.html">Screenshot</a> object representing the image of the page on the screen.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public Screenshot GetScreenshot()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="../webdriver/OpenQA.Selenium.Screenshot.html">Screenshot</a></dt>
<dd><p>A <a class="xref" href="../webdriver/OpenQA.Selenium.Screenshot.html">Screenshot</a> object containing the image.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Manage_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Manage*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Manage" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Manage">
Manage()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L318"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Instructs the driver to change its settings.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public IOptions Manage()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="../webdriver/OpenQA.Selenium.IOptions.html">IOptions</a></dt>
<dd><p>An <a class="xref" href="../webdriver/OpenQA.Selenium.IOptions.html">IOptions</a> object allowing the user to change
the settings of the driver.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Navigate_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Navigate*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_Navigate" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.Navigate">
Navigate()
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L328"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Instructs the driver to navigate the browser to another location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public INavigation Navigate()</code></pre>
</div>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="../webdriver/OpenQA.Selenium.INavigation.html">INavigation</a></dt>
<dd><p>An <a class="xref" href="../webdriver/OpenQA.Selenium.INavigation.html">INavigation</a> object allowing the user to access
the browser's history and to navigate to a given URL.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_OnElementClicked_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.OnElementClicked*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_OnElementClicked_OpenQA_Selenium_Support_Events_WebElementEventArgs_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.OnElementClicked(OpenQA.Selenium.Support.Events.WebElementEventArgs)">
OnElementClicked(WebElementEventArgs)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L686"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Raises the <a class="xref" href="OpenQA.Selenium.Support.Events.EventFiringWebDriver.html#OpenQA_Selenium_Support_Events_EventFiringWebDriver_ElementClicked">ElementClicked</a> event.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected virtual void OnElementClicked(WebElementEventArgs e)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>e</code> <a class="xref" href="OpenQA.Selenium.Support.Events.WebElementEventArgs.html">WebElementEventArgs</a></dt>
<dd><p>A <a class="xref" href="OpenQA.Selenium.Support.Events.WebElementEventArgs.html">WebElementEventArgs</a> that contains the event data.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_OnElementClicking_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.OnElementClicking*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_OnElementClicking_OpenQA_Selenium_Support_Events_WebElementEventArgs_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.OnElementClicking(OpenQA.Selenium.Support.Events.WebElementEventArgs)">
OnElementClicking(WebElementEventArgs)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L674"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Raises the <a class="xref" href="OpenQA.Selenium.Support.Events.EventFiringWebDriver.html#OpenQA_Selenium_Support_Events_EventFiringWebDriver_ElementClicking">ElementClicking</a> event.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected virtual void OnElementClicking(WebElementEventArgs e)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>e</code> <a class="xref" href="OpenQA.Selenium.Support.Events.WebElementEventArgs.html">WebElementEventArgs</a></dt>
<dd><p>A <a class="xref" href="OpenQA.Selenium.Support.Events.WebElementEventArgs.html">WebElementEventArgs</a> that contains the event data.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_OnElementValueChanged_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.OnElementValueChanged*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_OnElementValueChanged_OpenQA_Selenium_Support_Events_WebElementValueEventArgs_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.OnElementValueChanged(OpenQA.Selenium.Support.Events.WebElementValueEventArgs)">
OnElementValueChanged(WebElementValueEventArgs)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L710"><i class="bi bi-code-slash"></i></a>
</h3>
<div class="markdown level1 summary"><p>Raises the <a class="xref" href="OpenQA.Selenium.Support.Events.EventFiringWebDriver.html#OpenQA_Selenium_Support_Events_EventFiringWebDriver_ElementValueChanged">ElementValueChanged</a> event.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">protected virtual void OnElementValueChanged(WebElementValueEventArgs e)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>e</code> <a class="xref" href="OpenQA.Selenium.Support.Events.WebElementValueEventArgs.html">WebElementValueEventArgs</a></dt>
<dd><p>A <a class="xref" href="OpenQA.Selenium.Support.Events.WebElementValueEventArgs.html">WebElementValueEventArgs</a> that contains the event data.</p>
</dd>
</dl>
<a id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_OnElementValueChanging_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.OnElementValueChanging*"></a>
<h3 id="OpenQA_Selenium_Support_Events_EventFiringWebDriver_OnElementValueChanging_OpenQA_Selenium_Support_Events_WebElementValueEventArgs_" data-uid="OpenQA.Selenium.Support.Events.EventFiringWebDriver.OnElementValueChanging(OpenQA.Selenium.Support.Events.WebElementValueEventArgs)">
OnElementValueChanging(WebElementValueEventArgs)
<a class="header-action link-secondary" title="View source" href="https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/support/Events/EventFiringWebDriver.cs/#L698"><i class="bi bi-code-slash"></i></a>