Ask a Question

Steps in web middle of API testing

SOLVED
max0987
New Contributor

Steps in web middle of API testing

Hi, Can some one suggest, how to do certain activities after I run APIs. Activities such as opening a link and clicking a buttong and then read a text as output. 
Can anyone have any idea to do this ? I mean with out the help of TestComplete tool, and just possible to do in Soap UI Pro. 

1 ACCEPTED SOLUTION

Accepted Solutions
avidCoder
Super Contributor

Re: Steps in web middle of API testing

Yes, ReadyAPI with Selenium integration can help you to resolve this problem. Please go through this link :-

https://support.smartbear.com/readyapi/docs/integrations/selenium/integrate.html

 

Pseudo Code :-

//Opening a link
WebDriver driver = new ChromeDriver()
driver.get("You Link")

//Clicking a button
driver.findElement(By.xpath("locator_object")).click()

//Reading as text
WebElement textValue = driver.findElement(By.xpath("locator_object")).getText()

And here is the setup solution provided by me :-

https://community.smartbear.com/t5/SoapUI-Pro/Simple-Functional-Web-Testing/m-p/178221#M40572

View solution in original post

2 REPLIES 2
avidCoder
Super Contributor

Re: Steps in web middle of API testing

Yes, ReadyAPI with Selenium integration can help you to resolve this problem. Please go through this link :-

https://support.smartbear.com/readyapi/docs/integrations/selenium/integrate.html

 

Pseudo Code :-

//Opening a link
WebDriver driver = new ChromeDriver()
driver.get("You Link")

//Clicking a button
driver.findElement(By.xpath("locator_object")).click()

//Reading as text
WebElement textValue = driver.findElement(By.xpath("locator_object")).getText()

And here is the setup solution provided by me :-

https://community.smartbear.com/t5/SoapUI-Pro/Simple-Functional-Web-Testing/m-p/178221#M40572

View solution in original post

TanyaYatskovska
Community Manager

Re: Steps in web middle of API testing

Thanks for your reply, @avidCoder.

@max0987, is this what you are looking for? If so, accept the reply as a solution.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager

Join Wintertainment 2021 to share your stories, have fun, earn community badges, and more!
cancel
Showing results for 
Search instead for 
Did you mean: