Answered step by step
Verified Expert Solution
Question
1 Approved Answer
could you please help me with this problem i have working in this problem wich is need to test a website while i am doing
could you please help me with this problem
i have working in this problem wich is need to test a website
while i am doing it via pycharm
telling me there is a worng in my program
what sholud i do
explain to me where Is the problem and why is not working on pycharm where spouse The code made it for for testing the website
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys Bimport time # using firefox driver = webdriver.firefox # using web url driver.get("https://www.opencart.com") # select class name where is input box are present egement - driver.find_elemnts(By.CLASS_NAME, "text_field") | # find the number of outbox print(len(element)) # fill value in input box # fill value in input box driver.find_element_by_xpath(*//*[@id="RESULT_TextField-1"]').send_keys("praveen") driver.find_element_by_xpath('//*[@id="RESULT_TextField-2"] 9. send_keys ("Yadav") driver.find_element_by_xpath('//*[Qid="RESULT_TextField-3"] ').send_keys ("87871111"). C:\Users\admin PycharmProjects\python Project7\venv\scripts\python.exe C:/Users/admin/PycharmProjects/python Project7/main.py Traceback (most recent call last): File "C:\Users\admin\PycharmProjects\pythonProject7\main.py", line 1, inStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started