Closed ghost closed 7 years ago
Hi. this library is very cool. but I dont know how to get text in textbox.
I try this code below:
target
<div class="parent1"><div class="parent2"><input type="text" size="40" value="" readonly ng-model="data"></div></div>
agouti
/*XPath to target element*/ fmt.Println(page.FindByXPath("/html/body/div/div/div[2]/section/section[3]/div/table/tbody/tr/td/div[3]/div/input").Text())
I think you're looking for the value attribute: selection.Attribute("value")
value
selection.Attribute("value")
Thank you so much!
Hi. this library is very cool. but I dont know how to get text in textbox.
I try this code below:
target
agouti