简体   繁体   English

Selenium 错误 - 它没有输入我的名字

[英]Selenium error - it does not type my name

This is my first time using python and I have a few problems.这是我第一次使用 python,我遇到了一些问题。 I want to automate webex(auto join meetings) and but i cant get passed this page: https://i.stack.imgur.com/kuaLI.png (it does not type my name) and I get this error: https://i.stack.imgur.com/yPeon.png我想自动化 webex(自动加入会议),但我无法通过此页面: https://i.stack.imgur.com/kuaLI.png (它没有输入我的名字)并且我收到此错误: https: //i.stack.imgur.com/yPeon.png

Here are the problems i have:以下是我遇到的问题:

Error Code错误代码

Does not Type in the box I tell it too不输入框我也告诉它

This is what i have written so far:这是我到目前为止所写的:

 import pytest import time import json from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.webdriver.chrome.service import Service service = Service(r"chromedriver.exe") service.start() driver = webdriver.Remote(service.service_url) driver.get('https://meetingsemea39.webex.com/meet/pr1812997966'); driver.find_element(By.ID, "push_download_join_by_browser").click() time.sleep (6) driver.find_element(By.CSS_SELECTOR, ".style-name-input-19PlX >.style-input-2nuAk").click() time.sleep (3) driver.find_element(By.CSS_SELECTOR, ".style-name-input-19PlX >.style-input-2nuAk").send_keys("Thanashs Ntouvlis") driver.find_element(By.ID, "guest_next-btn").click() driver.find_element(By.CSS_SELECTOR, ".style-audio-case-3xwDo").click() driver.find_element(By.ID, "interstitial_join_btn").click()

I am not able to find how to give you the page source code but this is the url( https://meetingsemea39.webex.com/meet/pr1812997966 ).我无法找到如何为您提供页面源代码,但这是网址( https://meetingsemea39.webex.com/meet/pr1812997966 )。 Just press Join from your browser and you will be on the same page i was.只需从浏览器中按加入,您将在同一页面上。

You are trying to find element by CSS_SELECTOR, but style-input-2nuAk is a class, not a CSS element.您正在尝试通过 CSS_SELECTOR 查找元素,但 style-input-2nuAk 是 class,而不是 CSS 元素。 To find elements by their class name: driver.find_element_by_class_name("class_name")通过 class 名称查找元素: driver.find_element_by_class_name("class_name")

It still does not type in the box它仍然没有在框中输入

You are trying to find element by CSS_SELECTOR, but style-input-2nuAk is a class, not a CSS element.您正在尝试通过 CSS_SELECTOR 查找元素,但style-input-2nuAk是 class,而不是 CSS 元素。

To find elements by their class name:按 class 名称查找元素:

driver.find_element_by_class_name("class_name")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 numpy 错误:“vectorcallfunc”未命名类型 - numpy error: ‘vectorcallfunc’ does not name a type 为什么 event.type function 返回名称错误? - Why does the event.type function return a name error? 为什么我的代码会抛出“NameError: name 'ModuleNotFoundError' is not defined”错误? - Why does my code throw "NameError: name 'ModuleNotFoundError' is not defined" error? selenium python 页面不起作用 - 未知错误:net::ERR_NAME_NOT_RESOLVED - selenium python page does not work - unknown error: net::ERR_NAME_NOT_RESOLVED 为什么我的自定义Python枚举器类型在Eclipse中导致错误 - Why does my custom Python enumerator type cause an error in Eclipse 这种递归是否有名称? - Does this type of recursion have a name? 为什么我的训练函数会抛出 Name 错误“未定义名称衰减”? - Why does my training function throw up the Name error "name decaying is not defined"? 使用 Python Selenium WebDriver 时出现错误“name 'by' is not defined” - Error "name 'by' is not defined" using Python Selenium WebDriver Web 抓取错误 selenium: name 'records' is not defined - Web scraping error selenium: name 'records' is not defined 尝试 selenium 打开谷歌时出现名称错误 - name error while trying selenium to open google
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM