Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
mfsi_Sudhansu
Posts : 3
Join date : 2012-11-07

How to print all the friend names in Facebook using Selenium Webdriver and Java code? Empty How to print all the friend names in Facebook using Selenium Webdriver and Java code?

Wed Nov 07, 2012 12:38 pm
Hi All,

Can someone please help in the following scenario?
Scenario:
I want to print all the friends name using Selenium Webdriver automation using java. Since all the friends name are not getting loaded in one page, i have to scroll down the sidebar until and unless all the friend list are getting loaded. What should be the condition to stop the scroll bar down?

Note: The "See more" option is not displaying.

Thanks
Sudhansu
Advisor
Advisor
------------------------
------------------------
Posts : 387
Join date : 2009-07-30
Location : India
https://seleniumforum.forumotion.net

How to print all the friend names in Facebook using Selenium Webdriver and Java code? Empty Re: How to print all the friend names in Facebook using Selenium Webdriver and Java code?

Mon Nov 19, 2012 9:01 pm
hi,

get view source of a page. find the frame in which friend list appearing.
Fetch all the values of tag present in that frame which contain friend name.

this is the logic. you have to write code and fetch the value using regular expression and x-path hierarchy

hope this will help. you have to write code by urself. I gave the logic.

Best of luck

Back to top
Permissions in this forum:
You cannot reply to topics in this forum