← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #245316]: How to get page title name while sikuli script running

 

Question #245316 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/245316

    Status: Open => Answered

obiwan-92 proposed the following answer:
Hello.

Today, I'm afraid there is no such function in Sikuli.
The simply workaround will be to get the address in the address bar with the following code
doubleClick("address_bar.png")
type('c', KeyModifier.CTRL)
address = Env.getCilipboard()
if 'google' in address:
    print 'It is google page'
else:
    print 'it is not a google page'

Hope, it's help.
Regards.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.