@@ -169,38 +169,38 @@ public async Task ShouldWaitForVisibleBoundingBox()
169169 await Page . SetContentAsync ( "<div style='width: 0;'>text</div>" ) ;
170170 await Task . Delay ( 100 ) ;
171171 Assert . False ( divFound ) ;
172- await Page . EvaluateExpressionAsync ( @"() => {
172+ await Page . EvaluateFunctionAsync ( @"() => {
173173 const div = document.querySelector('div');
174174 div.style.setProperty('height', '0');
175175 div.style.removeProperty('width');
176176 }" ) ;
177177 await Task . Delay ( 100 ) ;
178178 Assert . False ( divFound ) ;
179- await Page . EvaluateExpressionAsync ( @"() => {
179+ await Page . EvaluateFunctionAsync ( @"() => {
180180 const div = document.querySelector('div');
181181 div.style.setProperty('position', 'absolute');
182182 div.style.setProperty('right', '100vw');
183183 div.style.removeProperty('height');
184184 }" ) ;
185185 await Task . Delay ( 100 ) ;
186186 Assert . False ( divFound ) ;
187- await Page . EvaluateExpressionAsync ( @"() => {
187+ await Page . EvaluateFunctionAsync ( @"() => {
188188 const div = document.querySelector('div');
189189 div.style.setProperty('position', 'absolute');
190190 div.style.setProperty('left', '100vw');
191191 div.style.removeProperty('right');
192192 }" ) ;
193193 await Task . Delay ( 100 ) ;
194194 Assert . False ( divFound ) ;
195- await Page . EvaluateExpressionAsync ( @"() => {
195+ await Page . EvaluateFunctionAsync ( @"() => {
196196 const div = document.querySelector('div');
197197 div.style.setProperty('position', 'absolute');
198198 div.style.setProperty('top', '100vw');
199199 div.style.removeProperty('left');
200200 }" ) ;
201201 await Task . Delay ( 100 ) ;
202202 Assert . False ( divFound ) ;
203- await Page . EvaluateExpressionAsync ( @"() => {
203+ await Page . EvaluateFunctionAsync ( @"() => {
204204 const div = document.querySelector('div');
205205 div.style.setProperty('position', 'absolute');
206206 div.style.setProperty('bottom', '100vw');
0 commit comments