Login Unsucessful in zoho | Selenium Forum
M
Posted on 14/01/2017
Hi Ashish,

I am working on LoginTest in Zoho_2016 project.Using the below code I am unable to login to zoho. Here is the snapshot of the code and email id entered in the Login field . Also find the report attached.

M
Replied on 15/01/2017

there seems to be problem with dologin(username, pwd); function.

watch the video again and see if you made them correctly.


M
Replied on 16/01/2017

Modified the doLogin Function in BaseTest.. Still the same result. Please find the screenshot attached

Responsive image

M
Replied on 17/01/2017

print the value of username and password. I think those 2 values are null.


M
Replied on 18/01/2017

I have tried that before and the value is not null. Its printing the username and password provided in the xls.


M
Replied on 18/01/2017

Attached is the source code and the xls file for reference


M
Replied on 19/01/2017

problem with project is [color=#FF0000:2tsovuka]type()[/color:2tsovuka] function. it does not work.

I used this method and it worked

driver.findElement(By.xpath(prop.getProperty("loginId_xpath"))).sendKeys(username);

Responsive image

M
Replied on 19/01/2017

Thank you for the solution. Its working now.
Just need one more clarification on it. Could there be such situation when the called function is actually not
called(as in the above scenario). what could be the reason for it.


M
Replied on 19/01/2017

[quote:8ne4aemy]Could there be such situation when the called function is actually not
called(as in the above scenario). what could be the reason for it.
[/quote:8ne4aemy]

function type is being called but the problem is with the function type itself. it does not work. remake that function and then call.