如何使用Selenium WebDriver验证页面标题,副标题,图形,图表数据?

时间:2014-07-09 10:31:10

标签: java javascript selenium selenium-webdriver

我正在研究 Selenium WebDriver 以及我用 Java 编写的代码。

我的方案是比较Page Title,Sub tilte,Graph,Chart Data与FE匹配。

Page Title,Sub tilte, Graph, Chart Data我需要存储在Property文件中,然后我需要与FE进行比较。

页面标题如下所示:

enter image description here HTML如下:

<h2>
New PR's
<p>Month Wise Overall New PR's </p>
</h2>

图表数据如下所示: enter image description here

HTML:

div class="drilDownTabularDataWrapper">
<h3>Month Wise Overall New PR's - Jan 2014 To Jun 2014 - Chart Data</h3>
<table class="drilDownTabularData" width="950">
</div>

0 个答案:

没有答案