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

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -