We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: