[quote:y24tj892]Unable to Click on the profile name link on the facebook.(please check on the my project attaching )
[/quote:y24tj892]
give me the xpath you're using.
it is in my properties fiel please check there i have mention all the thing and let me know where i did mistake
also why two browser is getting open ?
i hope you have gone through my PROJECT
[quote:1pe2tmyc]#button
CLICK=//*[contains(@id,'u_0_w')][/quote:1pe2tmyc]
this xpath won't work. watch dynamic xpath video.
this is a very common problem please watch module 12 part 4
and
and module 15 "Changing your facebook profile picture by attaching new picture"
Hi Dear ,
pLease read my query what i am asking and i am talking about what issue ..
here i am not chaning my profile pics my simple question is
1.
Why i am not able to click on the Name link from the home page of the facebook
Note :Xpath is not dyanamic
2.Second Query :
Why two browser is getting Open
Please reply on it i have attach my project with it and reply with the soluion i am stuck in this problem and waiting for your Correct Reply solution.
1) Your 2 browsers are opening
This is because your design of POM is wrong
Please watch the video again
Line number 25 of page class if(driver==null)
There are no brackets specified. Thats why code opens browser again and again
Please fix this. Then only u can click on profile link
2) Use xpath for profile
//*[@id='pagelet_welcome_box']/ul/li[1]/div/a