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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -