| 1. |
Is It Returning The Values? |
|
Answer» How ever your Javascript interaction can get more advanced as your script can return a value which will be delivered to your test when the HTTP RESPONSE is sent back by APPIUM once your Javascript has finished running. However this SCENARIO comes with a limitation: your Javascript can SEND back only primitive types (integers, strings), not complex objects. The limitation can be overtaken by passing objects as JSON strings or by modifying Appium's or Selenium's code to SUPPORT specific objects. How ever your Javascript interaction can get more advanced as your script can return a value which will be delivered to your test when the HTTP response is sent back by Appium once your Javascript has finished running. However this scenario comes with a limitation: your Javascript can send back only primitive types (integers, strings), not complex objects. The limitation can be overtaken by passing objects as JSON strings or by modifying Appium's or Selenium's code to support specific objects. |
|