python - 使用 selenium 向 Google colab 发送输入
问题描述
我正在尝试在 Google colab 中运行以下代码。
# code for load the file
number = input('Enter the number')
print('You entered',number)
我将此代码保存在一个文件中并通过 selenium 加载它,当我运行代码时它显示输入框,但我不知道如何使用 selenium 和 python 发送数字。提前感谢您的帮助
PS如果您需要任何澄清,请随时询问
解决方案
推荐阅读
- c# - C#打开一个excel工作簿后,如何防止用户在同一个excel实例中打开另一个excel文件(通过windows)?
- c# - 如何在 CefSharp 中获取特定 ChromiumWebBrowser 实例的远程调试 URL?
- ubuntu - Minikube 是否在 Ubuntu 19.10 虚拟机中运行?
- typescript - 可观察的嵌套回调
- r - 我可以将 xts 对象写入 excel,包括行名吗
- pandas - 按索引替换现有值
- javascript - 为什么 data-amp-bind-href 或 [href] 在 amp-bind 组件中不起作用?
- scripting - 通过脚本在 Spark AR 中使值动态化
- .net - 关于将应用程序从 .Net Framework 移植到 .Net core 的问题
- java - Intellij 断点报告方法抛出 'java.lang.ClassNotFoundException' 异常,即使变量存在