-3

I have to search all the POST and GET in my project. Suppose I enter a link and Login to the system. The Web driver should searches all the Get and Post in that page.

Kapil Bisht
  • 9
  • 1
  • 3
  • 9
  • 1
    Please read [ask]. Please provide the code you have tried and the execution result including any error messages, etc. Also provide a link to the page and/or the relevant HTML. – JeffC Apr 07 '17 at 13:08

1 Answers1

0

I had used

   List<WebElement> listmethod = driver.findelements(By.TagName("form"));
for(WebElement listcall : listmethod){
System.out.println(listcall.getAttributes("method"));
}

it solved my problem

Kapil Bisht
  • 9
  • 1
  • 3
  • 9