Home > other >  How to implement the selenium in the console console input
How to implement the selenium in the console console input

Time:11-14


The console control code to post, the get?
How to implement, bosses
The selenium code is used to implement image print (1)

CodePudding user response:

Bosses ahhh

CodePudding user response:

Know how

CodePudding user response:

Know how, I also want to know

CodePudding user response:

Driver=webdriver. Chrome (" chromedriver. Exe ")
Driver. The get (" https://www.baidu.com ")
Driver. Execute_script (" print (' 1 ') ") # it run js code

CodePudding user response:

reference 4 floor Joker_3Chen response:
driver=webdriver. Chrome (" chromedriver. Exe ")
Driver. The get (" https://www.baidu.com ")
Driver. Execute_script (" print (' 1 ') ") # it run js code

You are to funny???????

CodePudding user response:

refer to 6th floor SunriseCai response:
me to answer this question,
 
The from the selenium import webdriver

Url="https://blog.csdn.net/weixin_45081575"
Browser=webdriver. Chrome (" your chromedriver. Exe driver path ")
The get (url)
The execute_script (" the console. The log (' print (1) ') ")


Using the console. The log can be realized in the console output,

According to the information in the original poster picture, he is the print in the console input (' 1 '), so the content of selenium in directly use the print (' 1 ') have what problem

CodePudding user response:

refer to 7th floor Joker_3Chen response:
Quote: refer to the sixth floor SunriseCai response:
me to answer this question,
 
The from the selenium import webdriver

Url="https://blog.csdn.net/weixin_45081575"
Browser=webdriver. Chrome (" your chromedriver. Exe driver path ")
The get (url)
The execute_script (" the console. The log (' print (1) ') ")


Using the console. The log can be realized in the console output,

According to the information in the original poster picture, he is the print in the console input (' 1 '), so the content of selenium in directly use the print (' 1 ') have what problem


You are perpetuated this misunderstanding ah, brother,

Their own packing string you don't get to run,

At this level?? Is this it?? Is this it?? For ye whole smiled

CodePudding user response:

There are true? Methods with o!!
  • Related