Category : button

I need to press green button in to accept cookies on https://garantex.io/ My code: driver = webdriver.Chrome(ChromeDriverManager().install()) driver.implicitly_wait(10) driver.get("https://garantex.io/") try: cookie_access = driver.find_element_by_class_name(‘btn.btn-success’) print("Is displayed = " + str(cookie_access.is_displayed())) except Exception as e: driver.close() print(e) I have Is displayed = FALSE. How can I interact with this button? Source: Python..

Read more

from tkinter import * root = Tk() #This function should stop the function printer def button_status(is_clicked): return is_clicked #This function prints integer numbers from 0 to 2 def printer(): for i in range(3): print(i) if(button_status==True): break button = Button(root, text="Stampa",height=2, width=6, command= printer, font=("TkDefaultFont",18),bg=’white’) button.place(x=630, y=680) button3 = Button(root, text="Termina",height=2, width=6, command= lambda: button_status(True), font=("TkDefaultFont",18),bg=’white’) ..

Read more

in Python without using tkinter, can anyone help? Here’s the code i’d like to add it to: import time pswrd = ‘12345678’ while True: m = input("1.Login 2.Reset Passwordn") if m == "1": n = input("Password:n") if n == pswrd: print("Password Correctn") else: print("Wrong Passwordn") else: n = input("New Password:n") pswrd = n repeat = ..

Read more

Need to generate warning message while clicking the confirm button in Sale module. But the button doesn’t work. Condition: total amount >= 200000 and vat number in customer is NULL, Here is the code, from odoo import api, fields, models, _ from odoo.exceptions import UserError class pannum(models.Model): _inherit = "sale.order" def action_confirm_vat(self): if self.amount_total > ..

Read more