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

InputControl info() not working #111

Open
santhiyaattivo opened this issue Oct 14, 2024 · 0 comments
Open

InputControl info() not working #111

santhiyaattivo opened this issue Oct 14, 2024 · 0 comments

Comments

@santhiyaattivo
Copy link

Here is my sample python script. info() doesn't seem to work.

from pywebostv.connection import *
from pywebostv.controls import *
from appium import webdriver
from selenium.webdriver.common.by import By

store = {}
client = WebOSClient("192.168.1.7", secure=True)
client.connect()
for status in client.register(store):
if status == WebOSClient.PROMPTED:
print("Please accept the connect prompt on the TV screen!")
elif status == WebOSClient.REGISTERED:
print("Successfully registered the TV")
print(store)

desired_capabilities = {
'platformName': 'LGTV',
'automationName': 'webOS',
'deviceName': 'lg_office',
'deviceHost': '192.168.1.7',
'appId': 'com.cableco3.stv.platform',
'chromedriverExecutable': '/Users/santhiya.krishnamoorthi/Desktop/kaveri/chromedriver/chromedriver',
'useSecureWebsocket': True,
}

driver = webdriver.Remote('http://127.0.0.1:4723', desired_capabilities)

inp = InputControl(client) # This gives api for remote control for LG TV
inp.connect_input()
time.sleep(15)
inp.right() #Working as expected
inp.info() #Not working

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

1 participant