javascript - Fill form and visit webpage with NodeJS - Stack Overflow

admin2025-04-17  2

I want to input a string in this web page .cgi and, after click analyze or something similar in an HTML (like clicking OrfFind in that webpage), get the output in a browser. Is that possible with NodeJS?

I want to input a string in this web page http://www.ncbi.nlm.nih.gov/gorf/orfig.cgi and, after click analyze or something similar in an HTML (like clicking OrfFind in that webpage), get the output in a browser. Is that possible with NodeJS?

Share asked Dec 29, 2014 at 9:16 user2979409user2979409 7911 gold badge13 silver badges24 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 2

There are multiple tools/frameworks in different sizes that you can use. Basically the keyword you want to search for is end-to-end testing. Popular packages are Zombie.js or Nightwatch.js.

According to the context you might also consider a headless browser that is scripted with javascript such as Casper.js or Phantom.js

Yes it is possible with NODEJS. Nightwatch.js

Sample is below.

 module.exports = {
"Demo test Google" : function (client) {
   client
  .url("http://www.ncbi.nlm.nih.gov/gorf/orfig.cgi")
  .click("button[name=OrfFind]")
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744857528a270917.html

最新回复(0)