0
您好我有一個HTML代碼:如何檢索元素的屬性?
<img style="border-width:0px;" alt="graph" src="abc.ashx?meter=1203&start=20131007000000&end=20131028000000" id="ctl00_phBody_imgChart">
我要檢索的開始和結束參數。我試着用下面的代碼,但沒有爲我工作。
driver.findElement.id("ctl00_phBody_imgChart").getAttribut("start")
請任何人都幫助。
感謝,
Sudhansu
請添加示例html代碼您的工作內容如此幫助您c一個準確。 – abrasadera
wat error is u getting?.....「e」is missing from「getAttribut」,I guess that is a typo .. – Amith