Hi ashish,
I also have same problem. The problem is we are unable to select stage from dropdown.
I tried with following->
stage_xpath=//*[@id="Crm_Potentials_STAGE"]
stage1_xpath=/html/body/div[13]/div[12]/form/div/div[5]/div[1]/div/div[2]/div[3]/div[2]/div/span/span[1]/span
Even I tried with select class in basetest
public void dropdownclick(String value){
Select d = new Select(driver.findElement(By.xpath(prop.getProperty("stage1_xpath"))));
d.selectByVisibleText(value);
}
Kindly help
it seems xpath is wrong. you are using single slash (/) at the start of xpath.
stage1_xpath=/html/body/div[13]/div[12]/form/div/div[5]/div[1]/div/div[2]/div[3]/div[2]/div/span/span[1]/span
[b:1vi8dkbs][u:1vi8dkbs]NOTE[/u:1vi8dkbs][/b:1vi8dkbs]: dont depend on xpath that is used above. Always best option is to built customized xpath which will not change dynamically