I have used sahi pro automation tool. The code for setting value to a text box is done using sahi base like textbox("username").setValue("jimmy"). But on run time this piece of code gets changed into sahi pro code like _sahi._textbox("username").setvalue("klj"). Now I want to know the reason why does it happen and secondly how to convert it to sahi Base or how to tackle such a problem to run my code in Sahi Base Environment??
Asked
Active
Viewed 68 times
0
-
What do you mean by Sahi Base and Sahi Base Environment? Also, are you using the java driver of Sahi? Eventually, all the code is executed in browser in javascript. So _sahi._textbox("username") is basically javascript code. – Vivek V Dwivedi Oct 14 '16 at 06:33
-
sir I use Java to write code and controller mode is also set to java in sahi.properties. – Jimmy Oct 14 '16 at 06:45
-
the issue that i am facing is on sending values using .setValue("xxx") is not working when used in any automation framework, however, using the same code independently works well.. – Jimmy Oct 14 '16 at 06:47
-
and this is something that I get on console:---error:Playback session not started. Verify that proxy is set on the browser.------whereas proxy is properly set to 9999 in my ie browser – Jimmy Oct 14 '16 at 06:50
-
You have a lot of variables here. What automation framework are you using? You created one yourself? Why are you writing the code in java in the first place? If this is not a strict requirement, you can actually try the Sahi scripting language. I am not sure if they have continuous support for java driver or not. If your code works well independently, then problem is not with Sahi but your automation framework. You might want to get support from the team if you are using pro. They provide support during evaluation as well. – Vivek V Dwivedi Oct 14 '16 at 06:58
-
Sir but its not Sahi pro......and the error on console is ---error:Playback session not started. Verify that proxy is set on the browser---this is something I am unable to understand.. – Jimmy Oct 14 '16 at 07:03
-
but its not Sahi pro -> Are you using Sahi Open source or the pro version. And it's not possible to figure out what is wrong with the information you are providing. – Vivek V Dwivedi Oct 14 '16 at 08:27
-
exactly its sahi open source..... – Jimmy Oct 14 '16 at 10:37
-
Please try in the Sahi forums then. You will have a better shot. I haven't worked with Sahi OS. – Vivek V Dwivedi Oct 14 '16 at 10:51