Bad color in table. Bootstrap 5.2.3 - colors

I have no practice as a bootstrap user.
I have a table. when i set dark mode in browser then the color of text is wrong (black on black background).
What am I doing wrong?
(fg-color is only bad in table when class="table" added)
<!doctype html>
<html lang="pl">
<head>
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap#5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap#5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="/static/admin/css/base.css">
<link rel="stylesheet" type="text/css" href="/static/admin/css/nav_sidebar.css">
<link rel="stylesheet" type="text/css" href="/static/admin/css/dashboard.css">
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" type="text/css" href="/static/admin/css/responsive.css">
</head>
<body>
<table class="table table-responsive table-bordered">
<thead>
<tr>
<th class="text-center" scope="col">Name</th>
<th class="text-center" scope="col">Price</th>
<th class="text-center" scope="col">Qnt</th>
</tr>
</thead>
<tbody>
<tr>
<td>product 1</td>
<td class="text-end">12,48</td>
<td class="float-right"><input class="form-control float-right" type="number" min="1" max="999"></td>
</tr>
<tr>
<td>product 2</td>
<td class="text-end">12,48</td>
<td class="float-right"><input class="form-control float-right" type="number" min="1" max="999"></td>
</tr>
<tr>
<td>product 3</td>
<td class="text-end">12,48</td>
<td class="float-right"><input class="form-control float-right" type="number" min="1" max="999"></td>
</tr>
</tbody>
</table>
</body>
</html>
I tried using a div container and some classes but it doesn't change anything.

For styling depending on browser based color mode/theme, you can use the prefers-color-scheme media query as it is used to detect whether the user has requested a light or dark theme based on operating system setting or user agent (browser in this case) settings.
You can set the color for the table using this query:
#media (prefers-color-scheme: dark) {
your-selector {
color: white;
}
}
Reference - MDN

Related

XPATH Syntax - Katalon Studio

Hi,
I wanted to get the text from the webpage with Cucumber & Groovy in Katalon Studio. Please find the below Step Definition which has the xpath and below is the html code.
I wanted to read the below two lines from the page which can be referred in the html code also below. The number 596 varies each time i.e., dynamic.
Create Inquiry Tracking # 596
The inquiry for system tracking # 596 has been submitted successfully
Step Definition
inquiryt1 = WebUI.getText(findTestObject(By.xpath("//td[#class='pageTitle'][1]")))
Full Page HTML :
<html lang="en">
<head>
<title>Govt Inquiry</title>
<link rel="stylesheet" type="text/css" href="?appId=gmpinquiry&flName=/uitmpl/en/css/uitmpl.css" />
<link rel="stylesheet" type="text/css" href="?appId=gmpinquiry&flName=/gmpinquiry/css/gmpinquiry.css" />
<script type="text/javascript" src="?appId=gmpinquiry&flName=/uitmpl/js/other_scripts.js"></script>
<script type="text/javascript" src="?appId=gmpinquiry&flName=/uitmpl/js/freezingHeader.js"></script>
<script type="text/javascript" src="?appId=gmpinquiry&flName=/uitmpl/js/sortTable.js"></script>
<noscript>
<style>
table.mQH {display:block;}
</style>
</noscript>
<style id="antiClickjack">body{display:none !important;}</style>
<script type="text/javascript">
if (self === top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
top.location = self.location;
}
</script>
</head>
<body onload="uitmpl_qhPageInit()">
<!-- Skip To Main Content should be the next element immediately after body element -->
<div class="skipnav">Skip to Main Content </div>
<script type="text/javascript" src="?appId=gmpinquiry&flName=/uitmpl/js/menu_script.js"></script>
<script type="text/javascript" src="?appId=gmpinquiry&flName=/uitmpl/js/application_settings.js"></script>
<script type="text/javascript" src="?appId=gmpinquiry&flName=/uitmpl/js/global_settings.js"></script>
<script language="javascript">
application.data = {
td_1: "Home",
td_2: "Govt Inquiry",
td_3: "Create Inquiry",
td_4: "Reports/Search",
td_5: "My Preference",
url_1: "javascript:OnGMPPortalSubmit(document.frmMenuScr, '')",
url_2: "javascript:OnMenuSubmit (document.frmMenuScr, 'homepage')",
url_3: "javascript:OnMenuDispatch (document.frmMenuScr, 'setupinquiry','create')",
url_4: "javascript:OnMenuSubmit (document.frmMenuScr, 'inqsubmenu')",
url_5: "javascript:OnMenuSubmit (document.frmMenuScr, 'userpref')"
};
global.data = {
//td_1: "AT&T BusinessDirect",
td_1: "Write Us",
td_2: "Help <span class=\"offscrn\"> - Opens a PDF Document for Help</span>",
td_3: "Close",
//td_3_1: "General Help",
//td_3_2: "Application Tutorial",
//td_3_3: "<span id=\"shHd\">Show</span> Quick Help",
//url_1: "javascript:bizDirect()",
url_1: "javascript:OnMenuSubmit(document.frmMenuScr, 'compose')",
url_2: "javascript:uitmpl_popUpReg(document.frmMenuScr.action + '?appId=' + document.frmMenuScr.appId.value + '&flName=' + document.frmMenuScr.context.value + '/help/Inquiry_UG.pdf')",
url_3: "javascript:window.close();"
//url_3_1: "javascript:uitmpl_popUpReg(document.frmMenuScr.action + \\'?appId=\\' + document.frmMenuScr.appId.value + \\'&flName=\\' + document.frmMenuScr.context.value + \\'/help/Inquiry_UG.pdf\\')",
//url_3_2: "#",
//url_3_3: "javascript:uitmpl_qhPageToggle()"
};
</script>
<script type="text/javascript" src="?appId=gmpinquiry&flName=/gmpinquiry/js/script.js"></script>
<!--************ uitmplbegin: tBAN ************-->
<!--****** begin:background graphic ******-->
<table width="100%" cellspacing="0" border="0" class="tBAN">
<tr>
<td><img src="?appId=gmpinquiry&flName=/uitmpl/en/img/swoosh.gif" width="650" height="69" alt="" border="0" /></td>
</tr>
</table>
<!--****** end:background graphic ******-->
<!--****** begin:logo and company title ******-->
<div class="logoCompany">
<table width="100%" cellspacing="0" border="0" class="tBAN">
<tr>
<td class="logo"><img src="?appId=gmpinquiry&flName=/uitmpl/en/img/attbizdirect.gif" width="291" height="63" alt="AT&T | Business Direct" border="0" /></td>
<td><!-- stretchable cell --></td>
<!-- max characters for company title: 72 w/ breaks (24 per line) -->
<td class="company">ATT Gov Sol Dev<br/>rm0013
<!-- Begin Skip Top Navigation -->
<!-- <div class="skipnav">Skip to Main Content</div> -->
<!-- End Skip Top Navigation --></td>
</tr>
</table>
</div>
<!--****** end:logo and company title ******-->
<!--****** begin:application title ******-->
<table cellspacing="0" border="0" class="appTitle">
<tr>
<td>View and Analyze Govt. Bills: Govt Inquiry</td>
</tr>
</table>
<!--****** end:application title ******-->
<!--************ uitmplend: tBAN ************-->
<!--************ uitmplbegin: tNAV ************-->
<div id="glbl">
<script language="JavaScript1.3">
<!--
uitmpl_list("global");
//-->
</script>
<noscript>
<div class="globalAcc">
<table class="global_main" cellspacing="0" border="0">
<tr>
<td class="global_main_spacer"> </td>
<td>AT&T BusinessDirect</td><td class="pipe">|</td><td>Write Us</td><td class="pipe">|</td><td>Help</td>
</tr>
</table>
</div>
</noscript>
</div>
<div id="app">
<script language="JavaScript1.3">
<!--
uitmpl_list("application");
//-->
</script>
<noscript>
<div class="applicationAcc"><table class="application_main" cellspacing="0" border="0">
<tr>
<td>Home</td>
<td class="pipe">|</td>
<td>Create/Update Dispute</td>
<td class="pipe">|</td>
<td>Reports/Search</td>
<td class="pipe">|</td>
<td>My Preference</td>
<td class="pipe">|</td>
<td>User Management</td>
</tr>
</table>
</div>
</noscript>
</div>
<!--************ uitmplend: tNAV ************-->
<form name="frmMenuScr" action="/servlet/GMPGate" method="get">
<input type="hidden" name="appId" value="gmpinquiry">
<input type="hidden" name="nextScr" value="userpref">
<input type="hidden" name="methodToCall" value=""/>
<input type="hidden" name="context" value="/gmpinquiry"/>
</form>
<!--***** begin:grid *****-->
<table width="100%" cellspacing="0" border="0" class="wrap">
<tr>
<td width="100%" class="grid">
<!-- InstanceBeginEditable name="PageHeader" -->
<!--************ uitmplbegin: tPH ************-->
<!--****** begin:titles ******-->
<table cellspacing="0" border="0" class="tPH">
<!--****** begin:page title ******-->
<tr>
<td class="pageTitle">Create Inquiry Tracking # 599</td>
</tr>
<!--****** end:page title ******-->
</table>
<!--****** end:titles ******-->
<!--************ uitmplend: tPH ************-->
<!-- InstanceEndEditable -->
</td>
<td width="182" class="grid"><img src="?appId=gmpinquiry&flName=/uitmpl/en/img/pixel.gif" width="182" height="1" alt="" border="0" /></td>
</tr>
</table>
<!--***** end:grid *****-->
<!--***** begin:grid *****-->
<table width="100%" cellspacing="0" border="0" class="wrap">
<tr>
<td width="100%" class="grid">
<!--- BeginOptional name="TaskConfirmation" --->
<!-- InstanceBeginEditable name="TaskConfirmation" -->
<!--************ uitmplbegin: mTC ************-->
<table cellspacing="0" cellpadding="2" border="0" class="mTC">
<tr class="msgConfirm">
<td> <img src="?appId=gmpinquiry&flName=/uitmpl/en/img/confirmation.gif" width="29" height="29"
border="0" alt="Confirmation." /></td><td>The inquiry for system tracking # 599 has been submitted successfully. </td>
</tr>
</table>
REASON FOR FAILED WITH THE SOLUTION
2019-06-26 18:40:10.049 ERROR c.k.k.c.c.keyword.CucumberReporter
- ❌ it should displays create inquiry pages FAILED.
Reason:
groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.testobject.ObjectRepository.findTestObject()
is applicable for argument types: (org.openqa.selenium.By$ByXPath) values: [By.xpath: //td[#class='pageTitle'][1]]
Possible solutions: findTestObject(java.lang.String), findTestObject(java.lang.String, java.util.Map) at CreateInquiry001.it_should_displays_create_inquiry_page2(CreateInquiry001.groovy:369)
at ✽.it should displays create inquiry pages(C:/Users/vdavuluri2/Katalon Studio/Govt Inquiry/Include/features/Create Inquiry-001.feature:55)
Katalon's findTestObject() method is used for selecting an object from the object repository. It doesn't work with By class.
You can try with something like the following: create an object with the given Xpath and then use WebUI.getText() on it:
TestObject testObject = new TestObject().addProperty("xpath", ConditionType.EQUALS, "//td[#class='pageTitle'][1]")
WebUI.getText(testObject)
The element with class pageTitle looks unique so why not user
//td[#class='pageTitle']

Excel - Place Changing Text of Cells

I know there are probably multiple ways of accomplishing what I'm about to inquire, but I don't have full understanding of excel's functional capacity so I'm working with what I know.
Here's how the set up looks in my excel workbook.
|---|---------------------|--------------------|---------------------|
| | A | B | C |
|---|---------------------|--------------------|---------------------|
| 1 |image_north.001.jpg |image_north.002.jpg | x |
|---|---------------------|--------------------|---------------------|
| 2 |image_south.002.jpg image_south.002.jpg | y |
|---|---------------------|--------------------|---------------------|
And Cell C1 (x) contains all of this below....
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<TABLE>
<TBODY>
<TR>
<TD><IMG style="HEIGHT: 200px; WIDTH: auto"
src="https://example.web.link/image/property/" width=486 height=647>
</TD>
<TD><IMG style="HEIGHT: 200px; WIDTH: auto"
src="https://example.web.link/image/property/" width=486 height=647>
</TD>
</TR>
</TBODY>
</TABLE>
What formula do I have to write to get this output on C1 itself or D1?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<TABLE>
<TBODY>
<TR>
<TD><IMG style="HEIGHT: 200px; WIDTH: auto"
src="https://example.web.link/image/property/**image_north.001.jpg**"
width=486 height=647>
</TD>
<TD><IMG style="HEIGHT: 200px; WIDTH: auto"
src="https://example.web.link/image/property/**image_north.002.jpg**"
width=486 height=647>
</TD>
</TR>
</TBODY>
</TABLE>
**Y would just be a matter of dragging the formula down.
I guess what I'm not able to figure out is how to INSERT string into string. I tried making the template into a formula by placing "=" before it, but I kept getting an error.
May I get some help with this please?
Thank you!
Replace the C1 template with this text:
Notice the placeholders after "property/" -> "< image 1>" and "< image 2>"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<TABLE>
<TBODY>
<TR>
<TD><IMG style="HEIGHT: 200px; WIDTH: auto"
src="https://example.web.link/image/property/<image 1>" width=486 height=647>
</TD>
<TD><IMG style="HEIGHT: 200px; WIDTH: auto"
src="https://example.web.link/image/property/<image 2>" width=486 height=647>
</TD>
</TR>
</TBODY>
</TABLE>
In D1 enter this formula:
=SUBSTITUTE(SUBSTITUTE(C1;"<image 1>";A1);"<image 2>";B1)
This would be the set up

VBA Excel - Filling in webforms unable to click submit button

I am fairly new to coding and took on this project to create 1000 new accounts in an internal program we have at my work. I was able to get the macro to fill in the webform and proceed through 2 pages however at the third page I was unable to get it to click the submit button.
Code:
Sub Automate1()
Dim IE As Object
Dim doc As HTMLDocument
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.navigate "https://associate.heritagerep.com/signup/signup.asp?
SectionID=10&t=10030&guid=CB57C450-F8D2-4644-98CB-99C37DA43668"
Do While IE.Busy
Application.Wait DateAdd("s", 1, Now)
Loop
Set doc = IE.document
'First Screen'
doc.getElementsByName("sponsor")(0).Value = "kffrep"
doc.getElementById("Username").Value = "75871"
doc.getElementById("email").Value = "75871#kff.com"
doc.getElementById("zip").Value = "111111"
doc.getElementsByName("Submit")(0).Click
Do While IE.Busy
Application.Wait DateAdd("s", 1, Now)
Loop
'Second Screen'
doc.getElementById("companyName").Value = "kff1"
doc.getElementById("OccupationTy_Select").Value = 34
doc.getElementById("fname").Value = "75871"
doc.getElementById("lname").Value = "kff1"
doc.getElementById("mstreet1").Value = "1 kff st"
doc.getElementById("mcity").Value = "Mississauga"
doc.getElementById("mstate").Value = "ON"
doc.getElementById("hphone").Value = "1111111"
doc.getElementById("emailConfirm").Value = "75871#kff.com"
doc.getElementsByName("SSN")(0).Value = "000000000"
doc.getElementById("password").Value = "password1"
doc.getElementById("passwordconfirm").Value = "password1"
doc.getElementsByName("securityanswer")(0).Value = "pizza"
doc.getElementsByClassName("btn btn-primary")(0).Click
Do While IE.Busy
Application.Wait DateAdd("s", 1, Now)
Loop
'Third Screen'
Set tags = doc.getElementsByClassName("btn btn-success")
For Each tagx In tags
If tagx.Name = "submitfinish" Then
tagx.Click
End If
Next
Do While IE.Busy
Application.Wait DateAdd("s", 1, Now)
Loop
'Fourth Screen'
doc.getElementsByName("Submit3")(0).Click
'Fifth Screen'
doc.getElementsByName("CheckOrderPaid")(0).Click
doc.getElementsByName("Shipped")(0).Click'
doc.getElementsByName("subAdminOpt")(0).Click
Flag
End Sub
Below is the HTML code for the troublesome button:
<input name="submitfinish" class="btn btn-success" type="submit" value="Finish Order">
I am not sure why the actions I used in the first 2 pages to click the submit button are suddenly not working on the third page. I have tried may different iterations trying to work around the problem but have yet to find one that is successful.
Appreciate any feedback.
Additional DOM Details:
<div class="text-right">
<a class="btn btn-default" href="/default.asp?guid=651F5B01-725B-4CCD-B12E-17CD5D59C472">Continue Shopping<!--Continue Shopping--></a>
<input name="submitcalc" class="btn btn-default" type="submit" value="Re-Calculate">
<input name="submitfinish" class="btn btn-success" type="submit" value="Finish Order"><!--Finish Order -->
</div>
Entire webpage HTML:
<!DOCTYPE html>
<html lang="en" class="non-mobile">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<meta content='width=device-width, initial-scale=1.0, maximum-
scale=1.0, user-scalable=0' name='viewport' />
<!-- Scripts -->
<script type="text/javascript" src="//code.jquery.com/jquery-
1.11.0.min.js"></script>
<script type="text/javascript" src="/common/script.js"></script>
<script type="text/javascript" src="/common/function/script_source.js"></script>
<script type="text/javascript" src="/common/jquery/jquery.validate.min.js"></script>
<script type="text/javascript" src="/common/function/functions.js"></script>
<!-- bootstrap -->
<script type="text/javascript" src="/responsive/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/responsive/js/common.js"></script>
<script type="text/javascript" src="/common/shadowbox/shadowbox.js"></script>
<script type="text/javascript" src="/responsive/js/jquery.animate-colors-min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.js"></script>
<script type="text/javascript" src="//unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<!-- CSS -->
<link href="/common/shadowbox/shadowbox.css" rel="stylesheet">
<link href="/responsive/css/bootstrap.css" rel="stylesheet">
<link href="/responsive/css/bootstrap-custom.css" rel="stylesheet">
<link href="/responsive/css/bootstrap-ms.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.css" rel="stylesheet">
<!-- Parent Site overrides -->
<link href="//associate.heritagerep.com/clientinc/resources/css/common.css" rel="stylesheet">
<style type="text/css">
#import url('//associate.heritagerep.com/common/templates/public/css/custom.css');
</style>
<script type="text/javascript">
$(function() {
app.init({ domain: 'associate.heritagerep.com'});
});
</script>
</head>
<body class="responsive">
<!-- This is a helper so javascript can see whether or not this is a mobile device -->
<div id="isMobile" class="visible-xs"></div>
<form method="post" name="currencyty">
<input type="hidden" name="CartId" value="439915">
<table class="table table-striped">
<thead>
<tr>
<th>ItemCode<!--ItemCode--></th>
<th>Description<!--Descr--></th>
<th>Qty<!--Qty--></th>
<th>Currency<!--Currency--></th>
<th>Price Each<!--Price Each--></th>
<th>
Volume
</th>
<th>Volume 2<!--Volume 2--></th>
<th>Price Total<!-- Total--></th>
<th>
Points Total
</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td> <!-- ITEM CODE -->
1004
</td>
<td><!-- Description -->
Initial Certification Fee
</td>
<td> <!-- QTY -->
<input name="Qty_609000021&609000020&0&-1&1004&N" type="text" value="1" size="2" onblur="WidthTest(this,1);" />
</td>
<td>CAD</td>
<td>
$25.00
</td>
<td>
0
</td>
<td>
0
</td>
<td>
$25.00
</td>
<td>
0
</td>
<td class="text-right">
Edit<!--Edit-->
</td>
</tr>
<tr>
<td colspan="100%">
<div class="pull-left">
Add Item<!--Add-->
</div>
<div class="pull-right">
<input name="adItemCode" type="text" value="Item Code" size="10" onclick="this.value = ''" onblur="WidthTest(this,1);AddTableRow('ProductItemCode')"><!--Item Code-->
Qty:<!--Qty:--> <input name="adNewQty" type="text" value="1" size="2" onblur="WidthTest(this,1);">
<span style="font-weight:bold;vertical-align: middle; float: right;">
<input type="submit" name="submitadd" value="Add Item" onclick="whichButton='add';"><!--Add Item-->
</span>
</div>
</td>
</tr>
</tbody>
</table>
<div class="pull-right">
<ul class="list-group">
<li class="list-group-item">
<strong>Volume:</strong>
0
</li>
<li class="list-group-item">
<strong>Totals<!--Totals :-->:</strong>
$25.00
</li>
</ul>
</div>
<div class="clearfix"></div>
<div class="text-right">
Continue Shopping<!--Continue Shopping-->
<input type="submit" name="submitcalc" value="Re-Calculate" class="btn btn-default">
<input type="submit" name="submitfinish" value="Finish Order" class="btn btn-success"><!--Finish Order -->
</div>
</form>
<script language="javascript">
$(function() {
$('.fancy').fancybox({
'width' : '75%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe',
'topRatio': '0.1',
'autoHeight': true
});
});
</script>
</body>
You could try and attribute = value selector to target element. Let us know if an error and if so check if there is a parent iframe/frame tag.
ie.document.querySelector("[value='Finish Order']").click
Or
ie.document.querySelector("[value='Finish Order']").FireEvent "onclick"

Beautifulsoup find_all return empty list

I have the code below. I’m trying to understand what
re.compile('ctl(\d\d)_MainContent_ctl(\d\d)_DataDetails_ctl(\d\d)_trGBKItem')
does, and why
tstsoup.find_all('tr', tstgradebook_row_id)
returns an empty list.
I’ve provided a sample of tstsoup below where I’ve replaced some chunks with “…” so that I could post it. It comes from
tstsoup = BeautifulSoup(driver.page_source)
This code follows from code in the repo
https://github.com/AlbanyCompSci/aeries-api 
in the Gradebook.py file. I’m using it to try to write a script to login and pull my kids high school grades.
Code:
import pandas as pd
import numpy as np
import os
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
Options
options = Options()
chrome_options = Options()
options.add_argument('headless') #downlod Chrome driver.exe
driver = webdriver.Chrome(executable_path=os.path.abspath("chromedriver"), chrome_options=chrome_options)
import re, dateutil.parser
from bs4 import BeautifulSoup
# tstsoup
tstgradebook_row_id = {'id': re.compile('ctl(\d\d)_MainContent_ctl(\d\d)_DataDetails_ctl(\d\d)_trGBKItem')}
# tstgradebook_row_id
tstgradebook_rows = tstsoup.find_all('tr', tstgradebook_row_id)
tstgradebook_rows
output:
[]
sample data:
tstsoup
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html class="k-webkit k-webkit70" xmlns="http://www.w3.org/1999/xhtml"><head><title>
Gradebook Summary
</title><meta content="initial-scale=1" id="ctl00_viewport" name="viewport"/><link href="favicon.ico" rel="shortcut icon" type="image/x-icon"/><link href="favicon.ico" rel="icon" type="image/x-icon"/><link href="/ParentPortal/Content/AjaxControlToolkit/Styles/Bundle?v=nap9lZtcl5K2gETjyyPCBXbWNbj8GlEheXK38ePUqDw1" rel="stylesheet"/>
<link href="StyleSheets/aeries.common.min.css?v=20160413" rel="stylesheet" type="text/css"/><link href="StyleSheets/aeries.default.min.css?v=20160413" rel="stylesheet" type="text/css"/><link href="StyleSheets/aeries-responsive.css" rel="stylesheet" type="text/css"/><link href="StyleSheets/Sofia.css" rel="stylesheet" type="text/css"/><link href="StyleSheets/GeneralLight.css" id="ctl00_BaseCSS" rel="stylesheet" type="text/css"/><link href="StyleSheets/calendar-stylesheet.css" rel="stylesheet" type="text/css"/><link href="KendoUI/kendo.common.min.css?v=2017.1.118" rel="stylesheet" type="text/css"/><link href="KendoUI/kendo.rtl.min.css?v=2017.1.118" rel="stylesheet" type="text/css"/><link href="KendoUI/kendo.bootstrap.min.css?v=2017.1.118" rel="stylesheet" type="text/css"/><link href="StyleSheets/bootstrap/bootstrap.css?v=2017.1.118" rel="stylesheet" type="text/css"/><link href="StyleSheets/bootstrap/bootstrap-tour.min.css?v=20170522" rel="stylesheet" type="text/css"/><link href="KendoUI/kendo.dataviz.min.css?v=2017.1.118" rel="stylesheet" type="text/css"/><link href="KendoUI/kendo.dataviz.default.min.css?v=2017.1.118" rel="stylesheet" type="text/css"/><link href="StyleSheets/font-awesome/font-awesome.min.css" rel="stylesheet" type="text/css"/><link href="StyleSheets/aeries-kendo-win.min.css" rel="stylesheet" type="text/css"/><link href="StyleSheets/CheckBoxes.min.css?vsn=20150929" rel="stylesheet" type="text/css"/><link href="StyleSheets/aeries-master.min.css?vsn=20160301" rel="stylesheet" type="text/css"/>
<script src="ClientScripts/ControlPositions.js?vsn=20170822" type="text/javascript"></script>
<script src="ClientScripts/ExpandOut.js" type="text/javascript"></script>
<script src="ClientScripts/XMLCommunications.js" type="text/javascript"></script>
<script src="ClientScripts/xmldom.js" type="text/javascript"></script>
<script src="Scripts/require/TimeOut.js?vsn=20180509" type="text/javascript"></script>
<script src="ClientScripts/calendar.js?vsn20141202" type="text/javascript"></script>
<script src="ClientScripts/EmailStuff.js?vsn=20160428" type="text/javascript"></script>
<script src="ClientScripts/jquery.min.js?v=1.12.3" type="text/javascript"></script>
<script src="ClientScripts/jquery.validate.min.js" type="text/javascript"></script>
<script src="ClientScripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<script src="ClientScripts/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
<script src="KendoUI/kendo.all.min.js?v=2017.1.118" type="text/javascript"></script>
<script src="KendoUI/kendo.aspnetmvc.min.js?v=2017.1.118" type="text/javascript"></script>
<script src="Scripts/velocity.min.js" type="text/javascript"></script>
<script src="ClientScripts/General.js?vsn=20180824" type="text/javascript"></script>
<script src="ClientScripts/StudentBackpack.js?vsn=20161208" type="text/javascript"></script>
<script type="text/javascript">window.defaultStatus="Welcome to Aeries";</script>
<script src="ClientScripts/aeries-kendo-windows-1.0.4.js?vsn=20160401" type="text/javascript"></script>
<script src="ClientScripts/UserOptions.js?vsn=20160504" type="text/javascript"></script>
<script src="ClientScripts/aeries-pagination.js?vsn=20160309" type="text/javascript"></script>
<script src="Scripts/bootstrap.min.js" type="text/javascript"></script>
<script src="ClientScripts/jquery.slimscroll.min.js" type="text/javascript"></script>
<script src="Scripts/bootstrap-tour.min.js?v=20170522" type="text/javascript"></script>
<script src="ClientScripts/Tours.js?v=20180227" type="text/javascript"></script>
<script src="Tracking.vbhtml?636756623367579132" type="text/javascript"></script>
<script src="ClientScripts/demo-feedback_js.js" type="text/javascript"></script>
<link href="ClientScripts/demo-feedback_css.css" rel="stylesheet" type="text/css"/>
<!-- PM - disable tracking for now.
<link rel='stylesheet' type='text/css' href='//aeriestools.tech/screenshot-feedback/feedback.css?636756623367579132' />
<script type='text/javascript' src='//aeriestools.tech/tracking.js?636756623367579132'></script>
-->
<script type="text/javascript">
$(document).ready(function () {
if (kendo.support.mobileOS) {
//GeneralFunctions.IsDemoServer(CheckForMobileVersion_IsDemoServer_Complete);
}
...
</script>
<script src="GeneralFunctions.asmx/js" type="text/javascript"></script>
<script src="SecurityFunctions.asmx/js" type="text/javascript"></script>
<div class="aspNetHidden">
<input id="__VIEWSTATEGENERATOR" name="__VIEWSTATEGENERATOR" type="hidden" value="868F4997"/>
</div>
<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('ctl00$TheMasterScriptManager', 'aspnetForm', ['tctl00$MainContent$subStuTopAll$subQuickCON$subQuickCON_UpdatePanel','','tctl00$MainContent$subGBS$upPrint',''], [], [], 90, 'ctl00');
//]]>
</script>
<div class="view" data-root-url="https://abip.fsusd.org/ParentPortal/" data-school-code="520" style="height: 100%">
<table class="full NoPadding a-expand">
<tbody><tr id="ctl00_trTop">
<td class="ac" valign="top">
<nav class="navbar navbar-l" id="navparent">
<div class="container-fluid" id="nav-container">
<div class="navbar-header" style="float:left;">
<div class="pull-left">
<div class="sidebar-logo-a">
<a href="Default.aspx" title="Aeries Home">
<img alt="Aeries" onerror="this.src='images/aeries-logo-a.png'; this.onerror=null;" src="images/aeries-logo-a.png" title="Aeries Student Information System"/>
</a>
</div>
</div>
<ul class="nav navbar-nav navbar-left" id="nav-school-settings">
<li class="school-year-nav dropdown-submenu aeries-background-green-light" id="ctl00_schoolYearNav">
<span class="school-year-nolink-nav-text NoWrap" id="ctl00_lblSchoolYear">2018-2019</span>
</li>
<li class="dropdown-submenu" id="school-dropdown-wrapper">
<span class="school-name-nolink-nav-text NoWrap" id="ctl00_lblSchoolName" title="School 520">Rodriguez High</span>
</li>
<li>
<input class="MasterSC" id="ctl00_SC" name="ctl00$SC" type="hidden" value="520"/>
<input class="MasterSN" id="ctl00_SN" name="ctl00$SN" type="hidden" value="5272"/>
<input class="MasterPID" id="ctl00_PID" name="ctl00$PID" type="hidden" value="154138"/>
</li>
</ul>
</div>
<ul class="nav navbar-nav navbar-right" id="nav-settings">
<li class="dropdown-submenu nav-buttons">
<a class="dropdown-toggle expandable" data-toggle="dropdown" href="#" id="nav-account-dropdown-icon" title="Settings">
<span class="normalmode">
<span id="ctl00_lblWelcomeName">jennscorner#gmail.com</span>
<span class="icon-collapsed"></span>
</span>
<span class="tinymode">
<span class="k-icon k-i-custom" id="collapsed-settings-icon"></span>
</span>
</a>
<ul class="dropdown-menu SubTab forceRight" id="nav-account-dropdown" style="margin-top:0; padding-top:0;">
<li class="zebra" id="mobileTestdrive" style="display: none;"></li>
<li class="zebra" css="ContextMenuItem" id="ctl00_liParentNotification">
Parent Notification Preferences
</li>
<li class="zebra">
<a css="ContextMenuItem" href="/ParentPortal/ChangePassword.aspx" id="aChangePWD">Change Password</a>
</li>
<li class="zebra">
<a css="ContextMenuItem" href="/ParentPortal/ChangeEmail.aspx" id="aChangeEM">Change Email</a>
</li>
<li class="zebra">
<a css="ContextMenuItem" href="/ParentPortal/AddNewStudentToParent.aspx" id="aAddSTU">Add New Student To Your Account</a>
</li>
<li class="zebra">
<a css="ContextMenuItem" href="/ParentPortal/LogOut.aspx" id="aLogOut">Log Out</a>
</li>
</ul>
</li>
</ul>
</div>
</nav>
<div id="ctl00_ParNav_ParNav"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td align="left" class="raised "><table border="0" cellpadding="0" cellspacing="0" class="menutable"><tbody><tr valign="top"><td><div class="Top_Parent" id="Top_1"><a aria-haspopup="true" class="topdynamicmenu" href="Default.aspx" id="Home" name="Home" onclick="return true" target="">Home</a></div></td><td><div class="Top_Parent" id="Top_2"><a aria-haspopup="true" class="topdynamicmenu" href="javascript:void(0);" id="Student Info" name="Student Info" onclick="return true" target="">Student Info</a><div class="SubTab" id="Sub_2"><a class="zebra" href="StudentProfile.aspx" id="Profile" name="Profile">Profile</a><a class="zebra" href="Students.aspx" id="Demographics" name="Demographics">Demographics</a><a class="zebra" href="EmergencyContacts.aspx" id="Contacts" name="Contacts">Contacts</a><a class="zebra" href="ClassesOld.aspx" id="Classes" name="Classes">Classes</a><a class="zebra" href="Fees.aspx" id="Fees and Fines" name="Fees and Fines">Fees and Fines</a><a class="zebra" href="WorkPermit.aspx" id="Work Permit" name="Work Permit">Work Permit</a></div></div></td><td><div class="Top_Parent" id="Top_3"><a aria-haspopup="true" class="topdynamicmenu" href="javascript:void(0);" id="Attendance" name="Attendance" onclick="return true" target="">Attendance</a><div class="SubTab" id="Sub_3"><a class="zebra" href="Attendance.aspx" id="Attendance" name="Attendance">Attendance</a></div></div></td><td><div class="Top_Parent" id="Top_4"><a aria-haspopup="true" class="visitedtopmenu" href="javascript:void(0);" id="Grades" name="Grades" onclick="return true" target="">Grades</a><div class="SubTab" id="Sub_4"><a class="visitedsubmenu" href="GradebookSummary.aspx" id="Gradebook" name="Gradebook">Gradebook</a><a class="zebra" href="GradebookDetails.aspx" id="Gradebook Details" name="Gradebook Details">Gradebook Details</a><a class="zebra" href="StudentReportCardHistory.aspx" id="Report Card History" name="Report Card History">Report Card History</a><a class="zebra" href="Grades.aspx" id="Grades" name="Grades">Grades</a><a class="zebra" href="GraduationRequirements.aspx" id="Graduation Status" name="Graduation Status">Graduation Status</a><a class="zebra" href="Transcripts.aspx" id="Transcripts <span class='metadata' style='display: none;'>History</span>" name="Transcripts <span class='metadata' style='display: none;'>History</span>">Transcripts <span class="metadata" style="display: none;">History</span></a><a class="zebra" href="CollegeEntrance.aspx" id="College Entrance Requirements" name="College Entrance Requirements">College Entrance Requirements</a><a class="zebra" href="StudentStandardsBasedProgress.aspx" id="Standards Based Progress Dashboard" name="Standards Based Progress Dashboard">Standards Based Progress Dashboard</a></div></div></td><td><div class="Top_Parent" id="Top_5"><a aria-haspopup="true" class="topdynamicmenu" href="javascript:void(0);" id="Medical" name="Medical" onclick="return true" target="">Medical</a><div class="SubTab" id="Sub_5"><a class="zebra" href="MedicalHistory.aspx" id="Medical History" name="Medical History">Medical History</a><a class="zebra" href="Immunizations.aspx" id="Immunizations" name="Immunizations">Immunizations</a></div></div></td><td><div class="Top_Parent" id="Top_6"><a aria-haspopup="true" class="topdynamicmenu" href="javascript:void(0);" id="Test Scores" name="Test Scores" onclick="return true" target="">Test Scores</a><div class="SubTab" id="Sub_6"><a class="zebra" href="TestDetails.aspx" id="Test Details" name="Test Details">Test Details</a><a class="zebra" href="TestScores.aspx" id="Test Scores" name="Test Scores">Test Scores</a><a class="zebra" href="CollegeTestScores.aspx" id="College Entrance Tests" name="College Entrance Tests">College Entrance Tests</a><a class="zebra" href="PhysicalFitnessTestResults.aspx" id="Physical Fitness Test Results" name="Physical Fitness Test Results">Physical Fitness Test Results</a></div></div></td><td><div class="Top_Parent" id="Top_7"><a aria-haspopup="true" class="topdynamicmenu" href="javascript:void(0);" id="Change Student" name="Change Student" onclick="return true" target="">Change Student</a><div class="SubTab" id="Sub_7"><a class="zebra" href="ChangeStudent.aspx?cache=10%2f20%2f2018+12%3a58%3a56+PM&SC=520&SN=6703&ReturnPage=GradebookSummary.aspx&name=520_6703&id=520_6703" id="Anderson, Brett E - Grd 9 - Rodriguez High" name="Anderson, Brett E - Grd 9 - Rodriguez High" target="_blank">Anderson, Brett E - Grd 9 - Rodriguez High</a><a class="zebra" href="ChangeStudent.aspx?cache=10%2f20%2f2018+12%3a58%3a56+PM&SC=520&SN=5272&ReturnPage=GradebookSummary.aspx&name=520_5272&id=520_5272" id="Anderson, Drew J - Grd 11 - Rodriguez High" name="Anderson, Drew J - Grd 11 - Rodriguez High" target="_blank">Anderson, Drew J - Grd 11 - Rodriguez High</a><a class="zebra" href="AddNewStudentToParent.aspx" id="Add New Student To Your Account" name="Add New Student To Your Account">Add New Student To Your Account</a></div></div></td></tr></tbody></table></td></tr></tbody></table></div>
</td>
</tr>
<tr style="background-color:#F5F5F5; height: 525px; min-height:525px;"><td class="al" style="padding: 5px 5px 5px 5px; min-height:525px;" valign="top">
<div style="width:100%;"><span class="RedText" id="ctl00_lblAlert"></span></div>
<div class="page-head">
<div class="page-title">
<span class="lblPageTitle" id="ctl00_MainContent_subPageHead_lblPageTitle">Gradebook Summary</span>
</div>
<div class="page-options">
<span class="fa fa-print fa-2x page-option-default" id="print-submit" title="Print"></span>
<div class="hide">
<span id="favorite-submit" title="Favorite This Page"><span class="favorite-icon fa fa-star-o fa-2x page-option-default" id="ctl00_MainContent_subPageHead_FavoriteIcon"></span></span>
</div>
</div>
</div>
<input id="ctl00_MainContent_subPageHead_RedFlagValue" name="ctl00$MainContent$subPageHead$RedFlagValue" type="hidden"/>
<div id="StartTourWelcome" style="display: none;">
<div style="padding: 5px 0 20px 0;">
Would you like to take a tour of this page and its features?
</div>
<a class="k-button" href="#" id="StartTourWelcomeNo">No</a>
<div style="float:right">
<a class="k-button-primary" href="#" id="StartTourWelcomeYes">Yes</a>
</div>
</div>
<script>
...
<td class="Data NoWrap ac">Y</td>
<td class="Data NoWrap ac"></td>
</tr>
<tr class="zebratr">
<td class="Data ac aeries-dark-red"><b> </b></td>
<td class="Data NoWrap">
Sean Anderson
</td>
<td class="Data NoWrap">(707) 640-9807</td>
<td class="Data NoWrap"></td>
<td class="Data NoWrap"></td>
<td class="Data NoWrap">
Family Member
</td>
<td class="Data NoWrap ac"></td>
<td class="Data NoWrap ac"></td>
</tr>
<tr class="zebratr">
<td class="Data ac aeries-dark-red"><b> </b></td>
<td class="Data NoWrap">
Travis Shields
</td>
<td class="Data NoWrap"></td>
<td class="Data NoWrap"></td>
<td class="Data NoWrap">(415) 490-8826</td>
<td class="Data NoWrap">
Aunt/Uncle
</td>
<td class="Data NoWrap ac"></td>
<td class="Data NoWrap ac"></td>
</tr>
<tr class="zebratr">
<td class="Data ac aeries-dark-red"><b> </b></td>
<td class="Data NoWrap">
Dr. Finklestein
</td>
<td class="Data NoWrap">(707) 641-1900</td>
<td class="Data NoWrap"></td>
<td class="Data NoWrap"></td>
<td class="Data NoWrap">
Doctor/Health Plan
</td>
<td class="Data NoWrap ac"></td>
<td class="Data NoWrap ac"></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<script type="text/javascript">
$(document).ready(function () {
$("div[id$='_pnlQuickCON'] .widget-title").html($("div[id$='_pnlQuickCON'] .widget-title").html() + " For " + $(".lblName").text());
});
</script>
</div>
</div>
</div>
</div></div><div class="modalBackground" data-act-control-type="modalPopupBackground" id="QuickCONBehavior_backgroundElement" style="display: none; position: fixed; left: 0px; top: 0px; z-index: 10000;"></div></td></tr>
<tr><td>
<table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr>
<td class="al" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000;">Aeries Version <span id="ctl00_lblVersion">8.18.9.28</span></td>
<td class="ar" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000000;"><span id="ctl00_lblCopyright">Copyright © 1995-2018 Aeries Software. All Rights Reserved.</span></td>
</tr></tbody></table>
</td></tr>
</tbody></table>
</div>
<a class="hide" href="javascript:__doPostBack('ctl00$btnPrevious','')" id="ctl00_btnPrevious"></a>
<a class="hide" href="javascript:__doPostBack('ctl00$btnNext','')" id="ctl00_btnNext"></a>
<script language="javascript"> var timeoutIsParent = true; var global_SessionTimer; var global_WarningTimer; var global_SessionTimeout = 1200000; var global_WarningTimeout = 900000; initSessionTimer(1200000,900000);</script>
<script type="text/javascript">
//<![CDATA[
function PrintReport(){__doPostBack('ctl00$MainContent$subGBS$btnPrint','');}Sys.Application.add_init(function() {
$create(Sys.Extended.UI.ModalPopupBehavior, {"backgroundCssClass":"modalBackground","dropShadow":true,"dynamicServicePath":"/ParentPortal/GradebookSummary.aspx","id":"QuickCONBehavior","popupControlID":"ctl00_MainContent_subStuTopAll_pnlQuickCON"}, null, null, $get("ctl00_MainContent_subStuTopAll_btnShowQuickCON"));
});
Sys.Application.add_init(function() {
$create(Sys.Extended.UI.ModalPopupBehavior, {"backgroundCssClass":"modalBackground","cancelControlID":"ctl00_MainContent_subGBS_imgCloseTrendGraph","dynamicServicePath":"/ParentPortal/GradebookSummary.aspx","id":"ShowTrendGraph","popupControlID":"ctl00_MainContent_subGBS_pnlTrendGraph"}, null, null, $get("ctl00_MainContent_subGBS_btnShowTrendPopup"));
});
//]]>
</script>
</form>
<script type="text/javascript">
// remove the mobile portal link on desktop browsers
if (!kendo.support.mobileOS) {
$('#mobileTestdrive').hide();
if ($get("mobileTestdrive")) { $get("mobileTestdrive").innerHTML = ""; }
} else {
$('#mobileTestdrive').show();
}
window.masterSC = $('.MasterSC').val();
window.masterSN = $('.MasterSN').val();
window.masterID = $('.MasterPID').val();
</script>
<script type="text/javascript">
$(document).ready(function() {
window.masterSC = $('.MasterSC').val();
window.masterSN = $('.MasterSN').val();
window.masterID = $('.MasterPID').val();
});
</script>
<div class="k-widget k-window" data-role="draggable" style="padding-top: 35px; min-width: 90px; min-height: 50px; width: 400px; height: 235px; display: none;"><div class="k-window-titlebar k-header" style="margin-top: -35px;"> <span class="k-window-title" id="kendoCommonPopup_wnd_title"></span><div class="k-window-actions"><a aria-label="Close" class="k-button k-bare k-button-icon k-window-action" href="#" role="button"><span class="k-icon k-i-close"></span></a></div></div><div aria-labelledby="kendoCommonPopup_wnd_title" class="k-window-content k-content" data-role="window" id="kendoCommonPopup" role="dialog" tabindex="0"></div><div class="k-resize-handle k-resize-n"></div><div class="k-resize-handle k-resize-e"></div><div class="k-resize-handle k-resize-s"></div><div class="k-resize-handle k-resize-w"></div><div class="k-resize-handle k-resize-se"></div><div class="k-resize-handle k-resize-sw"></div><div class="k-resize-handle k-resize-ne"></div><div class="k-resize-handle k-resize-nw"></div></div></body></html>
I figured out the pattern of the id I was looking for had changed. It now looks like 'ctl(\d\d)_MainContent_subGBS_DataDetails_ctl(\d\d)_trGBKItem', and if I use that pattern I get the right chunks of source code.

Unable to click or select checkbox using selenium python webdriver chrome

After all unsuccessful tries I had to ask for the help.
The thing is I want to make script which will automatically login, go to specific tab ("WAN"), click appropriate check box (to disable NAT) and log out. (It's actually Huawei GPON router HG8245)..
My code goes fine until the check box, so...
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException
import unittest, time, re
driver=webdriver.Chrome(r"C:\chromedriver.exe") #load the driver => OK
driver.get("http://192.168.100.1") #go to this web page => OK
driver.find_element_by_id("txt_Username").send_keys("root") #username=root => OK
driver.find_element_by_id("txt_Password").send_keys("root") #password=root => OK
driver.find_element_by_xpath(".//*[#id='button']").click() #click Submit button => OK
driver.find_element_by_xpath(".//*[#id='headerTab']/ul/li[2]/div[2]").click() #Go to the 'WAN' tab => OK
And for the clicking of check box my tries:
#1
driver.find_element_by_xpath("//input[#value='InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1']").click() #=> NOT OK
#2
driver.find_element_by_xpath("//*[#id='record_1']/td[1]/input").click() #=> NOT OK
#3
driver.find_element_by_css_selector("#record_1 > td > input[name=\"rml\"]").click() #=> NOT OK
Of course all xpaths are checked in chrome via console (in the Mozilla as well) and they seems fine!
Any ideas how to solve this?
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<body>[![enter image description here][1]][1]
<div id="main">
<div id="header">
<div id="center" style="height: 495px;">
<div id="nav" style="height: 495px;">
<div id="content" style="height: 495px;">
<div id="topNav">
<div id="frameWarpContent" style="height: 470px;">
<iframe id="frameContent" marginheight="0" marginwidth="0" scrolling="no" src="html/network/wan.asp" style="height: 470px;" height="100%" frameborder="0" width="100%">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id="Page" xmlns="http://www.w3.org/1999/xhtml" dir="ltl">
<head>
<body class="mainbody">
<script language="JavaScript" src="../../resource/common/util.js?1103405">
<script language="JavaScript" src="../../resource/english/jsdiff.js?1103405">
<script language="JavaScript" src="../../resource/common/tabdes.js?1103405">
<script language="javascript" src="../common/manage_mode.asp">
<script language="javascript" src="../common/user_info.asp">
<script language="javascript" src="../common/topo_info.asp">
<script language="javascript" src="../common/feature_info.asp">
<script language="javascript" src="../common/wan_prefix_acquire.asp">
<script language="javascript" src="../common/wan_address_acquire.asp">
<script language="javascript" src="../common/wan_dns.asp">
<script language="javascript" src="../common/wan_list.asp">
<script language="javascript" src="../common/wlan_list.asp">
<script language="javascript" src="../common/lanmode_list.asp">
<script language="javascript" src="../common/policyroute_list.asp">
<script language="javascript" src="wan_language.html?1103405">
<script language="javascript" src="../common/wan_pageparse.html?1103405">
<script language="javascript" src="../common/wan_databind.html?1103405">
<script language="javascript" src="../common/wan_control.html?1103405">
<script language="javascript" src="../common/wan_check.html?1103405">
<script language="JavaScript" src="../../resource/english/bbspdes.html?1103405">
<script>
<div id="PromptPanel">
<script>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<tr>
<td id="Wan Connection">
<table id="wanInstTable" class="tabal_bg" width="100%" cellspacing="1">
<tbody>
<tr class="tabal_title">
<tr id="record_0" class="tabal_01" onclick="selectLine(this.id);">
<tr id="record_1" class="tabal_01" onclick="selectLine(this.id);">
<td align="center">
<input name="rml" value="InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1" onclick="" type="checkbox">
</td>
<td align="center">
<td align="center">
<td title="RealName :HSI Status :Connected IPAddress :10.10.10.10" align="center">
</tr>
</tbody>
</table>
<script>
<form id="ConfigForm">
</td>
</tr>
</tbody>
</table>
</body>
</html>
</iframe>
</div>
</div>
</div>
<div id="footer">
<div id="fresh">
</div>
</body>
</html>
*Edit: Modifying code tags and IP values
Considering provided HTML code sample you need to switch to iframe before handling check-box:
driver.switch_to.frame("frameContent")
driver.find_element_by_xpath("//tr[#id='record_1']//input").click()

Resources