Unable to click on profilename link in facebook using POM | Selenium Forum
M
Posted on 16/04/2016
Hi ,

I am facing two issue---using POM FRAMEWORK

1. Unable to Click on the profile name link on the facebook.(please check on the my project attaching )
2.Multiple browser is getting open whiel i have use the same code written by you.

Please see my attch project and give the solution

Thanks
deepak

M
Replied on 18/04/2016

[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.


M
Replied on 18/04/2016

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


M
Replied on 18/04/2016

[quote:1pe2tmyc]#button
CLICK=//*[contains(@id,'u_0_w')][/quote:1pe2tmyc]

this xpath won't work. watch dynamic xpath video.


M
Replied on 21/04/2016

hi ,

please reply


M
Replied on 23/04/2016

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"


M
Replied on 25/04/2016

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.


M
Replied on 25/04/2016

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


M
Replied on 25/04/2016

Thank you Ashish Sir Responsive image