Added better xpath selectors for the UI elements

This commit is contained in:
cheezedoodle2
2023-05-04 19:26:48 -07:00
parent 8765abfb12
commit c96a0b40ef
3 changed files with 50 additions and 30 deletions
+9 -6
View File
@@ -3,8 +3,9 @@ import csv
import os
import asyncio
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "C:/Users/Karen/AppData/Roaming/gcloud/application_default_credentials.json"
project_id = "fp-20230425"
# os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = "C:/Users/Karen/AppData/Roaming/gcloud/application_default_credentials.json"
# project_id = "fp-20230425"
project_id = "svig-384801"
'''
topic_name = "fp-topic-NFL-zipcodes"
@@ -27,7 +28,7 @@ print(f"Topic '{topic_name}' deleted.")
publisher = pubsub_v1.PublisherClient()
topic_name = "fp-topic-NFL-zipcodes"
topic_path = publisher.topic_path(project_id, topic_name)
topic = publisher.create_topic(request={"name": topic_path})
topic = publisher.create_topic(request={"name": topic_path}, timeout=30)
# Create a Pub/Sub subscription
@@ -37,10 +38,11 @@ subscription_path = subscriber.subscription_path(project_id, subscription_name)
subscription = subscriber.create_subscription(
name=subscription_path, topic=topic_path
)
'''
# Publish a message to the topic
# Read the data from the csv file
file_path = "C:/Users/Karen/Desktop/NFL_Cities.csv"
# file_path = "C:/Users/Karen/Desktop/NFL_Cities.csv"
file_path = zipcodes.csv
with open(file_path, "r") as csv_file:
reader = csv.reader(csv_file)
@@ -58,4 +60,5 @@ async def receive_messages():
print("Received message: {}".format(received_message.message.data))
asyncio.run(receive_messages())
asyncio.run(receive_messages())
'''