Home > other >  Slenium with code calls the Console Console
Slenium with code calls the Console Console

Time:09-28

Similar to the
How to use the code

CodePudding user response:

As far as I know, it is impossible, if you know tell me

CodePudding user response:

I'm sorry, but I may have a problem, I now know how the console console is called js code, direct use of execute_script () method can realize calls

CodePudding user response:

reference 1st floor nieoding response:
as far as I know, impossible, if you know tell me

I'm sorry, but I may have a problem, I now know how the console console is called js code, direct use of execute_script () method can realize calls

CodePudding user response:

Be like this?
 
The from the selenium import webdriver
Driver=webdriver. Chrome ()
Driver. Execute_cdp_cmd (' Runtime. The evaluate '{' expression' : 'var a=[1, 2, 3]. The console. The log (a); The console. The log (a. ength); '})
  • Related