Skip to content
New issue

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

Help getting ldtp2 code example working #47

Open
aaronorosen opened this issue Nov 12, 2018 · 1 comment
Open

Help getting ldtp2 code example working #47

aaronorosen opened this issue Nov 12, 2018 · 1 comment

Comments

@aaronorosen
Copy link

aaronorosen commented Nov 12, 2018

Hi there -

I'm trying to use the python ldtp library to click the following: Add extension dialog button. I was wondering if someone could point out why this isn't working. Thanks

image

from ldtp import *
import time
import utils
import ldtp


def main():
    driver = utils.get_driver()
    driver.webdriver.get("https://chrome.google.com/webstore/detail/google-calendar/gmbgaklkmjakoegficnlkhebmhkjfich")
    time.sleep(2)
    driver.webdriver.find_element_by_css_selector(
        ".webstore-test-button-label").click()

    time.sleep(2)
    print "HERE"
    if ldtp.activatewindow('Add "Google Calendar"?'):
        print "FOUND"
        ldtp.generatekeyevent('<left><space>')


if __name__ == '__main__':
    main()
@stuaxo
Copy link
Contributor

stuaxo commented Jan 22, 2019

Needs more info, whats the console output when you run this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants