String GetVisualDump(String type)
|
|
|
|
This command will return a String which contains the XML with all the dump (object spy) properties of the screen.
String type:User can get the dump on there flection in the following three different types:-
non-instrumented.
Native (of native instrumented applications).
Web (of hybrid applications or web sites).
Note: If type of dump is not supported on the current page - empty xml will be retrieved.
This command will get the structure of a page displayed on the device to analyze later by parsing the xml.
On the following example we will show the use of the command to pull the non-instrumented dump of the springboard of the device.
Device should be iOS7 and higher and non-instrumented mode should be enabled)
Reflection of the device:
Run the getVisualDump command with the type 'Non-instrumened'.
The result of the command on the console is:
Non-instrumented dump is retrieved.
On the following example we will show the use of the command to pull the dump of native instrumented application. In this case we will use the demo application of Eribank.
We will launch the application on the device:
Run the getVisualDump command with the type ’Native’.
The result of the command on the console is:
Native dump is retrieved.
On the following example we will show the use of the command to pull the web dump of hybrid instrumented application.
In this case we will use the demo application of Eribank which has hybrid parts in it.
We will launch the app and navigate to an hybrid page, which contains the Native as well as Web object.
Run the getVisualDump command with type 'Web'.
The result of the command on the console is:
Web dump is retrieved (Note that native is not retrieved)
String str0 = client.getVisualDump("Native");string str0 = client.GetVisualDump("Native");str0 = client.GetVisualDump ( "Native" )Reportvar0 = self.client.getVisualDump("Native")my $str0 = $client->getVisualDump("Native");