Zoho project:createPotential | Selenium Forum
M
Posted on 24/01/2017
Hi ,

I am working on createPotential in Zoho project(module 20).While adding new potential(now Deal) there is a 'STAGE' field which is a dropdown list implemented using 'span' . I am following the video and the code provide but that is not working currently.

Could you please provide a solution for it.

Thanks

M
Replied on 25/01/2017

what is the problem?


M
Replied on 26/03/2018

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

Responsive image

M
Replied on 05/04/2018

Any update on this ??????????????


M
Replied on 05/04/2018

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


M
Replied on 06/04/2018

You are using absolute/complete XPath.
Try using custom XPath