Filter löschen
Filter löschen

input to a web page with script

13 Ansichten (letzte 30 Tage)
Farhad Aslani
Farhad Aslani am 6 Jan. 2018
Beantwortet: Chris Perkins am 8 Jan. 2018
How can I open a webpage and input something in its search bar, using only Matlab commands, for example in a script, (that is without going to the web page and typing words there)?

Antworten (1)

Chris Perkins
Chris Perkins am 8 Jan. 2018
Hi Farhad,
To just open a webpage, you can use the function "web", as described in the following documentation page:
Depending on how the specific web page has implemented the search functionality, you may be able to use the function "webwrite" to mimic using the search bar and provide input in a Post name-value pair. For more information about "webwrite", see the following documentation page:
Another option is to use Java Robots to programmatically move your mouse, click the search bar, and enter text. While this workflow is not documented or officially supported, you can read more about this process on the following MATLAB Answers page:

Kategorien

Mehr zu Data Type Identification finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by