腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
“‘
Driver
”
对象
没有
属性
“
window_handles
”
、
、
、
、
[0] print("Current WindowHandle - 2", self.
driver
.window_handles[1]) self.
driver
.switch_to.window(window_after) 运行上面的代码会抛出错误:"'
Driver
‘
对象
没有</
浏览 177
提问于2020-08-11
得票数 1
1
回答
对象
没有
属性
切换窗口-Seleniumpython-py魅力。
、
、
driver
.get("https://usawheelstires.com/")
driver
.find_element(By.XPATH,("/
浏览 5
提问于2022-08-10
得票数 -2
1
回答
Selenium :我可以用Selenium打开一个新的选项卡,但是不能在这个选项卡上执行任何操作。
、
): # locators print("I am on the child tab") sel
浏览 8
提问于2022-09-20
得票数 0
1
回答
如何在不丢失设置的情况下使用Selenium访问同一网站两次?
、
我访问一个网站,登录,然后
没有
经过寻找和写入到网站的搜索字段的过程,我认为我可以简单地通过一个URL访问该网站与我想要的搜索查询。问题是,当我用第二个"
driver
.get“(下面代码中的最后一行代码)访问网站时,它好像忘记了我以前登录过的内容;就好像我打开了一个全新的会话一样。= webdriver.Chrome(service=path) login_email_button =
driv
浏览 3
提问于2022-06-25
得票数 0
回答已采纳
1
回答
Selenium切换到弹出窗口
、
、
print(
driver
.current_url)print(
driver
.title)提前谢谢。
浏览 9
提问于2021-03-10
得票数 3
回答已采纳
1
回答
对象
没有
属性
“”
driver
“”
、
、
错误是: self.
driver
=
driver
def click1(self, element):return self.
driver
.find_elem
浏览 7
提问于2021-05-31
得票数 0
2
回答
无法定位元素: Selenium
、
、
、
、
我已经尽力了,但每次错误NoSuchElementException:
没有
这样的元素:无法定位元素:{“方法”:“xpath”,“选择器”弹出。一开始,我想可能是因为我
没有
正确地更改制表符,这就是为什么会显示这个错误。但是,即使在使用
window_handles
之后,我仍然无法在这个页面上找到任何元素。 base = self.
driver
.window_handles[0] child = se
浏览 3
提问于2020-04-10
得票数 1
回答已采纳
3
回答
当禁用页面上的元素时,Selenium Java Chrome发送enter键
、
、
Actions action = new Actions(
driver
); //attempt 1action.sendKeys(Keys.RETURN
浏览 1
提问于2018-04-03
得票数 2
回答已采纳
1
回答
“‘dict”
对象
没有
属性
“
driver
”
、
、
、
根据我所掌握的最低知识,我在下面创建了一个测试用例,该测试用例旨在实现此目的,但我收到错误消息'dict‘
对象
没有
属性
'
driver
’importappPackage = 'genericsurveyapp2', self.
driver
webdriver.Remote('http:
浏览 0
提问于2020-11-26
得票数 0
3
回答
为什么Selenium找不到元素的名字?(Python、Firefox)
、
、
eventId_confirmed" class="btn btn-green margin-bottom-20 bold medium" autofocus=""> 和下面的Python btn =
driver
.find_element_by_nameautofocus="" autocomplete="off" type="text" data-original-title="" title="" style=&qu
浏览 25
提问于2019-03-14
得票数 0
1
回答
使用Python获取所有打开选项卡的URL
、
driver
=webdriver.Chrome()上面的代码只为我提供了第一个选项卡的URL。我试过的另一件事是:上面的解决方案失败了,因为
window_handles
()返回一个不包含current_url的unicode
对象
,为了找到每个选项卡的current_url,我倾向于不主动地遍历所有选项卡,因为它会破坏手头的自动化任务。
浏览 3
提问于2017-09-26
得票数 3
回答已采纳
1
回答
Python selenium在启动时等待浏览器加载
、
、
/chromedriver')print('before sleeping',
window_handles
)#This does not change focus to the new window for the # Switch to the last window <e
浏览 0
提问于2020-07-29
得票数 0
1
回答
Selenium-webdriver脚本中断循环
、
、
=page"
driver
.get(website[0])
driver
.get(website[1])
driver
.execute_script("window.open('about:blank', 'thirdtab'
浏览 7
提问于2022-11-28
得票数 1
回答已采纳
1
回答
AttributeError:“
Driver
”
对象
没有
属性
“”id“”
、
、
= self.request.get('
driver
_id')
driver
_id = int(
driver
_id) responseJSON = {'status': 'OK', 'Staus': 'OK'}
浏览 1
提问于2015-04-15
得票数 0
1
回答
AttributeError:“”TestLogin“”
对象
没有
属性
“”
driver
“”
、
、
、
、
我正在使用Python和Appium框架创建带有页面
对象
模型的测试用例,并且我需要在每个测试用例之前执行一些代码,因此我在base_test.py文件中使用了setUp方法。) self.login_page.openLoginPage() self.login_page.ope
浏览 575
提问于2018-06-07
得票数 0
1
回答
Selenium“FirefoxWebElement”
对象
没有
属性
“_
driver
”
、
、
、
、
import webdriver
driver
= webdriver.Firefox() login =
driver
.find_element_by_class_name('jsx-3665539393'
浏览 98
提问于2020-07-19
得票数 1
回答已采纳
1
回答
远程驱动程序和粘贴选项。它存在吗?
、
而且它在非远程环境下运行时
没有
任何问题。我点击复制到剪贴板按钮,并有下面的粘贴功能。
浏览 3
提问于2022-01-25
得票数 0
回答已采纳
1
回答
Selenium WebDriver Python:无法切换到弹出
、
、
、
、
在打开弹出窗口之前(父窗口的句柄)和弹出之后,
window_handles
只给我一个句柄。父窗口将变得不可点击,直到弹出窗口关闭。当我在IE窗口打开弹出后打开开发者工具时,它会显示弹出的内容。我试图到达弹出窗口的iframe中的编辑框的所有尝试都
没有
起作用。我试过-错误: alert=
driver
.switchtoalert(
浏览 0
提问于2015-05-22
得票数 1
1
回答
如何在Python中使用Selenium访问弹出式登录表单
、
、
、
我了解了如何单击该按钮,以便弹出登录表单:from selenium.webdriver.common.keys import Keys
driver
.get("http://pentesteracademylab.appspot.com//lab/webapp/digest")
driver
.find_element_by_css_selec
浏览 0
提问于2015-04-08
得票数 8
回答已采纳
2
回答
使用python关闭Selenium中的弹出窗口
、
、
、
、
我想拉出流行音乐的标题并使用for循环来关闭弹出窗口(),但是弹出窗口
没有
标题。
driver
= webdriver.Chrome()
driver
.get('https://www.naukri.com/')print(f"This
浏览 44
提问于2021-02-01
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Femap对象的属性
python面向对象基础2:设置对象属性
JS对象属性排序小技巧
Python对象属性的那些事
Excel VBA(3)–对象、方法、属性
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券