How to access the href which is option in drop down list in selenium webdriver -
the x path link ide is: //a[contains(text(),'alliance entertainment corp.(iv00000003)'
to href use getattribute() (in java) method of webelement. in case can achieve by:
string href = driver.findelement(by.xpath("//a[contains(text(),'alliance entertainment corp.(iv00000003)'")).getattribute("href"); this return url element i.e. http://your-site-name/#
Comments
Post a Comment