Please note that Sahi's development and support teams do not actively monitor this. This is more a community forum. If you are a Sahi Pro user looking for commercial support, please email support @ sahipro.com with your query.

Problem is opening Browser is SAHI OS JAVA

Hi,

I am facing problem in opening browser in the backend. Browser is not opening in the backend in OS version of sahi. This problem is occuring is my machine not in others. I treied everything (installation/reinstallation/classpath check) etc . Please help asap.

Find below snippet of code


@BeforeMethod (alwaysRun = true)
public void setUp() {

System.out.println("I m inside setup");
//Initializing the browser
this.browser = Config.getBrowser();

Config file

public static Browser getBrowser() {

System.out.println("I m Inide getNrowser");
String browserName = init().getProperty("browser.name");

String browserHost = init().getProperty("browser.host");
String browserPort = init().getProperty("browser.port");

System.out.println("browserName, Browserhost, browserPort "+browserName+browserHost+browserPort);
Browser browser = new Browser(browserName, browserHost, Integer.parseInt(browserPort));
System.out.println("browser"+browser);
Functions.closeBrowserInstance(browser, browserName);

System.out.println("browser closing done =====");
browser.open();
System.out.println("Opening Browser");



browser.navigateTo(getServer().toString());

System.out.println("navigating t");
return browser;
}


Logs:-

[TestNG] Running:
C:\Users\Accolite\AppData\Local\Temp\testng-eclipse--73632965\testng-customsuite.xml

Sahi properties file = C:\Users\Accolite\sahi\config\sahi.properties
Sahi user properties file = C:\Users\Accolite\sahi\userdata\config\userdata.properties
I m inside setup
I m Inide getNrowser
Sahi properties file = C:\Users\Accolite\sahi\config\sahi.properties
Sahi user properties file = C:\Users\Accolite\sahi\userdata\config\userdata.properties
Sahi properties file = C:\Users\Accolite\sahi\config\sahi.properties
Sahi user properties file = C:\Users\Accolite\sahi\userdata\config\userdata.properties
Sahi properties file = C:\Users\Accolite\sahi\config\sahi.properties
Sahi user properties file = C:\Users\Accolite\sahi\userdata\config\userdata.properties
browserName, Browserhost, browserPort chromelocalhost9279
browsercom.idera.common.trunk.FX.Browser@379e6292
log4j:WARN No appenders could be found for logger (root).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.


Browser is not firing in the bak end . Please help.
Sign In or Register to comment.