from Selenium2Library import Selenium2Library
from robot.libraries.BuiltIn import BuiltIn
class nnlib1(Selenium2Library):
def __init__(self,*args):
Selenium2Library.__init__(self)
def open(self,url,browser='ie'):
Selenium2Library.open_browser(self,url,browser)
BuiltIn().sleep(2)
if browser == 'ie' :
Selenium2Library.click_element(self,'id=overridelink')
def login(self,name='admin',pwd='123456'):
Selenium2Library.input_text(self,'id=hitxtUserName',name)
Selenium2Library.input_text(self,'id=hipwd',pwd)
Selenium2Library.click_element(self,'id=ibLogin')
BuiltIn().wait_until_keyword_succeeds('1 min','10 sec','location_should_contain','frameDefault.htm')
the last sentence run error :
Multiple keywords with name 'location_should_contain' found.
Give the full name of the keyword you want to use.
Found: 'Selenium2Library.Location Should Contain' and 'nnlib1.Location Should Contain'
and :
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: Multiple keywords with name 'Capture Page Screenshot' found.
Give the full name of the keyword you want to use.
Found: 'Selenium2Library.Capture Page Screenshot' and 'nnlib1.Capture Page Screenshot'
what should i do ?
thanks.