robotframework-selenium2library-java icon indicating copy to clipboard operation
robotframework-selenium2library-java copied to clipboard

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

Open Anandh1924 opened this issue 6 years ago • 0 comments

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

Anandh1924 avatar Sep 24 '19 07:09 Anandh1924