如果我要解析的网站的html结构是这样的, '''
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>ex02</title>
<script type="text/JavaScript" src="http://code.jquery.com/jquery-1.7.min.js"></script>
<script type="text/JavaScript">`enter code here`
jQuery(document).ready(function() {
alert(jQuery('p').text());
});
</script>
</head>
<body>
<p>The Dom is ready!</p>
</body>
</html>
'''
由于“准备就绪事件”,我无法处理警报和所有事情
“驱动程序。切换到.alert.accept()”和 “操作。发送键(key.ENTER)操作。执行()”是无用的
我该怎么办???请帮忙
哦,我用的是chromewebdriver
目前没有回答
相关问题 更多 >
编程相关推荐