**我正在调用该类中的类重用方法**“”
from behave import *
from Functions_Orange.reuse import Reuse
from Resources import Locator
class Orange:
@given('Navigate to organeHRM')
def Navigate_loginPage(context):
print("Testing======Test \n")
print(Locator.Locator_UserName)
Reuse.sendTex
full_text = driver.find_elements_by_class_name("the-full-text")
for _ in full_text:
if "word" in _:
full_answer = _.find_element_by_xpath('..')
_.find_element_by_xpath("..//div[@class='some-text']").click()
我知道这个错误:
如果_中的"word“:
我正在实现一个Python代码,其中我需要生成一个SHA密钥。为此,我使用了一个在线SHA生成器。我通过selenium发送输入(需要Hash的数据),它成功地工作了。但是,在此之后,我无法获得生成的输出(文本字符串)。我使用find_element_by_xpath函数获取此数据,但它只返回一个空字符串。我不明白我做错了什么。有人能告诉我怎么做吗?或者,除了使用Selenium之外,是否还有其他方法来实现这一点? 我使用了以下代码: from selenium import webdriver
from selenium.webdriver.common.by import By
from
screenshot of error I m facing searchbox=driver.find_element_by_xpath('//*[@id="search"]')
searchbox.send_Keys("abc") 上面的行显示错误,显示为'list' object has no attribute 'send_Keys'。我已经在stack over flow上看到过这种问题,但解决方案对我没有帮助
我需要帮助处理我的密码。我在python中使用Selenium。
elems = driver.find_element_by_xpath("//article[@class='page-container']/section/div[3]")
for job in elems:
job_list.append(job.get_attribute('href'))
print(job_list)
The error is "TypeError: 'WebElement' object is not it