我创建了一个app.UITable,我选择A1(cell(1,1))作为默认的活动单元格,我想在Lable中显示它并通过一些输入对其进行更改。 我尝试过:
driver.get('https://www.t-online.de/themen/e-mail')
WebDriverWait(driver, 20).until(EC.frame_to_be_available_and_switch_to_it((By.CSS_SELECTOR,"iframe.top[title='Registration form']")))
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "input[attribure_name='attribute_value']"))).send_keys("Igor Duca")
,但不显示任何内容。 如何设置活动单元格并将其显示在标签中?
答案 0 :(得分:0)
您需要访问表格单元的内容,而不仅仅是索引。
const collegeData = [{
name: "University of Pennsylvania",
photo: "/Pages/About-Us Photos/yashviVardhan.png",
major: "Major: Biology",
minor: "Minor: Business",
},
{
name: "University of Chicago",
photo: "/Pages/About-Us Photos/yashVardhan.png",
major: "Major: Mechanical Engineering",
minor: "Minor: Business",
}
];
window.onload = function loadWindow() {
document.getElementById('adf').innerHTML = `${collegeData.length}
${collegeData.map(function(college){
return `
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/Pages/Colleges.css">
<script src="Colleges.js"></script>
</head>
<body>
<div class="container" style="margin-top:30px">
<div class="row">
<!-- College Advisor -->
<div class="col-sm-6">
<img class="college-photo" src= "${college.photo}">
<h2> ${college.name}</h2>
<h3> ${college.major}</h3>
<h3> ${college.minor}</h3>
</div>
</div>
</div>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="/Pages/Colleges.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="Colleges.js"></script>
</body>
`}).join("")}`
};