MarkusBernhardt / robotframework-selenium2library-java

Java port of the Selenium 2 (WebDriver) Python library for Robot Framework
Apache License 2.0
46 stars 48 forks source link

AttributeError: 'Selenium2Library' object has no attribute '_current_browser' #101

Open Anandh1924 opened 5 years ago

Anandh1924 commented 5 years ago

AttributeError: 'Selenium2Library' object has no attribute '_current_browser' on running testcase from travis

@staticmethod def generate_css_pro(): from selenium.webdriver.common.keys import Keys selenium2lib = BuiltIn().get_library_instance('Selenium2Library') driver = selenium2lib._current_browser print("I am here") tag = driver.find_element_by_xpath('//div[@class="left-panel layout-column"]') driver.execute_script("arguments[0].setAttribute('style', 'height:700px')", tag) print("checking") time.sleep(4)

Can any one help on this