Selenium Excercises - Please help

66 views
Skip to first unread message

Sam das

unread,
May 28, 2018, 10:50:46 PM5/28/18
to Selenium Users
Hi,
I am having hard time while rerun the code for the below exercises, not sure what am I doing wrong, Can someone help, please. Appreciate it.

Automate the following exercises. Code should follow best practices from Java, Selenium perspective, ensure exceptions are handled and execution is error free.

API only test: (Suggestion:  Automate scenarios without using selenium webdriver/ headless browsers or any other UI interaction, use any Java HTTP client libraries)


1. Log in to https://sfbay.craigslist.org/

2. Perform search for 'toyota'

3. Print all ad titles from page 2 to console

3. Save search by clicking 'save search' button (result of this action will be used in UI test)

4. Verify search was saved

 

UI only test: (Suggestion: use selenium)

1. Log in to https://sfbay.craigslist.org/

2. Go to 'my account'

3. Open 'searches' tab

4. Click 'edit' on toyota search

5. Change name to 'toyota prius'

6. Click 'save'

7. Verify name was changed

8. Click 'delete'

9. Verify search was deleted


Reed Xia

unread,
May 28, 2018, 11:31:18 PM5/28/18
to seleniu...@googlegroups.com
I think you may use HttpClient(see http://hc.apache.org/httpclient-3.x/tutorial.htmlfor the API test exercise, you need generate a HTTP request and analyse the response.

For the 2nd, it looks not hard, which step is blocking you now?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e89ca8e2-0708-4fc3-b73c-f32ec2d6c5d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ratan Ghosh

unread,
May 29, 2018, 2:42:13 AM5/29/18
to seleniu...@googlegroups.com
Thank you. 

To post to this group, send email to seleniu...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.

Boopathi krishnamoorthy

unread,
May 29, 2018, 10:25:42 AM5/29/18
to seleniu...@googlegroups.com
Hi Sam,
  Could you please post the code here for both Api and ui which you written after you got solution from the team so that everyone I'll get an idea on this Api scripting. 

Thanks 
Boopathi 

On Tue 29 May, 2018, 8:21 AM Sam das, <rat...@gmail.com> wrote:
Boxbe This message is eligible for Automatic Cleanup! (rat...@gmail.com) Add cleanup rule | More info
Hi,
I am having hard time while rerun the code for the below exercises, not sure what am I doing wrong, Can someone help, please. Appreciate it.

Automate the following exercises. Code should follow best practices from Java, Selenium perspective, ensure exceptions are handled and execution is error free.

API only test: (Suggestion:  Automate scenarios without using selenium webdriver/ headless browsers or any other UI interaction, use any Java HTTP client libraries)


1. Log in to https://sfbay.craigslist.org/

2. Perform search for 'toyota'

3. Print all ad titles from page 2 to console

3. Save search by clicking 'save search' button (result of this action will be used in UI test)

4. Verify search was saved

 

UI only test: (Suggestion: use selenium)

1. Log in to https://sfbay.craigslist.org/

2. Go to 'my account'

3. Open 'searches' tab

4. Click 'edit' on toyota search

5. Change name to 'toyota prius'

6. Click 'save'

7. Verify name was changed

8. Click 'delete'

9. Verify search was deleted


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.

Ram Niwas Sahu

unread,
Jun 1, 2018, 2:35:00 PM6/1/18
to Selenium Users
did anyone solve this?how did you create the request ?
Reply all
Reply to author
Forward
0 new messages