0

Error is specified below while performing the action.

Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook

Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:"C:\Program Files (x86)\HPE\LeanFT\bin\java_shared\classes";"C:\Program Files (x86)\HPE\LeanFT\bin\java_shared\classes\jasmine.jar"

public class LeanFtTest {

     @Before
        public void init(){
            try {
                ModifiableSDKConfiguration config = new ModifiableSDKConfiguration();
                config.setServerAddress(new URI("ws://localhost:5095"));
                SDK.init(config);
            }catch (Exception ex){
                System.out.println("Exception occured " + ex.toString());
            }
        }

    @Test
    public void test() throws GeneralLeanFtException {

        Browser browser = BrowserFactory.launch(BrowserType.CHROME);
        try {
            browser.navigate("https://www.google.co.in/");
            browser.sync();

        } catch (Exception e) {
            System.out.println("error in navigation");
        }
    }
}
Adelin
  • 7,809
  • 5
  • 37
  • 65
suraj sharma
  • 5
  • 1
  • 5
  • You need to edit your question with the full error from log – Ori Marko Mar 04 '18 at 11:11
  • Only I'm getting below error in console. Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:"C:\Program Files (x86)\HPE\LeanFT\bin\java_shared\classes";"C:\Program Files (x86)\HPE\LeanFT\bin\java_shared\classes\jasmine.jar" – suraj sharma Mar 05 '18 at 05:12
  • That is not an error. That's just a notification. You need to debug some more. Sounds like those lines are never executed. – Adelin Mar 05 '18 at 06:36
  • This issue is solved...I added the LeanFT extension to the browser now the code is working correctly. – suraj sharma Mar 06 '18 at 08:57

2 Answers2

0

Do you see a balloon on the taskbar saying the Leanft runtime has started? If not, then check that part of your code.

If leanft started, did you see a browser start? If not, check that part of your code.

not-bob
  • 815
  • 1
  • 8
  • 23
  • I'm able to see "LeanFt runtime engine is started" in notification section.. Browser is getting started but not putting the URL in the in browser. – suraj sharma Mar 06 '18 at 08:56
0

There is a picocomposition.message type not present issue coming while trying to launch the browser from leanft. Also leanftruntimeengine does not run and broswer does not start.

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 22 '21 at 06:05