Commit 31c75d8d by Javier

m

parent ceb21a03
File added
1640104699282 geckodriver INFO Listening on 127.0.0.1:9407
1640104702364 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--headless" "--remote-debugging-port" "9408" "-no-remote" "-profile" "C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofilexnUQSZ"
*** You are running in headless mode.
1640104702680 Marionette INFO Marionette enabled
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofilexnUQSZ\\search.json.mozlz4", (void 0)))
DevTools listening on ws://localhost:9408/devtools/browser/9c3dfd9b-a942-431f-a777-4b0348743f31
1640104703726 Marionette INFO Listening on port 9413
1640104703938 RemoteAgent WARN TLS certificate errors will be ignored for this session
console.log: WebExtensions: reset-default-search: starting.
console.log: WebExtensions: reset-default-search: No addons in our list are installed.
\firefox.exe" "--marionette" "--remote-debugging-port" "9509" "-no-remote" "-profile" "C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofileeZZIXG"
1640104860793 Marionette INFO Marionette enabled
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofileeZZIXG\\search.json.mozlz4", (void 0)))
DevTools listening on ws://localhost:9509/devtools/browser/f117489d-f81e-4f77-a3fe-6e9762261c6f
1640104862594 Marionette INFO Listening on port 9515
1640104862698 RemoteAgent WARN TLS certificate errors will be ignored for this session
JavaScript warning: http://192.168.2.56/mbilling/blue-neptune/app.js?_dc=20210128171437, line 1: unreachable code after return statement
1640104870112 Marionette INFO Stopped listening on port 9515
console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch resource.
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1640105323743 geckodriver INFO Listening on 127.0.0.1:16806
1640105326814 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "16807" "-no-remote" "-profile" "C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofilepbxhiC"
1640105327098 Marionette INFO Marionette enabled
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofilepbxhiC\\search.json.mozlz4", (void 0)))
DevTools listening on ws://localhost:16807/devtools/browser/e5b8e317-d8b8-4f4a-9947-fd0005c25897
1640105329001 Marionette INFO Listening on port 16813
1640105329492 RemoteAgent WARN TLS certificate errors will be ignored for this session
JavaScript warning: http://192.168.2.56/mbilling/blue-neptune/app.js?_dc=20210128171437, line 1: unreachable code after return statement
1640105349138 Marionette INFO Stopped listening on port 16813
console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch resource.
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1640105365201 geckodriver INFO Listening on 127.0.0.1:16882
1640105368254 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "16883" "-no-remote" "-profile" "C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofileL8n9vf"
1640105368561 Marionette INFO Marionette enabled
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofileL8n9vf\\search.json.mozlz4", (void 0)))
DevTools listening on ws://localhost:16883/devtools/browser/1a7ab431-9f3e-4ec2-bf49-8ad542709152
1640105370396 Marionette INFO Listening on port 16889
1640105370428 RemoteAgent WARN TLS certificate errors will be ignored for this session
JavaScript warning: http://192.168.2.56/mbilling/blue-neptune/app.js?_dc=20210128171437, line 1: unreachable code after return statement
console.log: WebExtensions: reset-default-search: starting.
console.log: WebExtensions: reset-default-search: No addons in our list are installed.
1640105899042 Marionette INFO Stopped listening on port 16889
console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch resource.
[Parent 20220, IPC I/O Parent] WARNING: file /builds/worker/checkouts/gecko/ipc/chromium/src/base/process_util_win.cc:167
pen the file at C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofilefpboJ0\\search.json.mozlz4", (void 0)))
DevTools listening on ws://localhost:17490/devtools/browser/85d56c75-341e-4011-8814-bf95d5cec35d
1640105807536 Marionette INFO Listening on port 17499
1640105808026 RemoteAgent WARN TLS certificate errors will be ignored for this session
JavaScript warning: http://192.168.2.56/mbilling/blue-neptune/app.js?_dc=20210128171437, line 1: unreachable code after return statement
JavaScript error: resource://gre/actors/AutoCompleteChild.jsm, line 125: Error: Invalid autocomplete selectedIndex
JavaScript error: resource://gre/actors/AutoCompleteChild.jsm, line 125: Error: Invalid autocomplete selectedIndex
JavaScript error: resource://gre/modules/LoginManagerChild.jsm, line 194: NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "Invalid autocomplete selectedIndex" {file: "resource://gre/actors/AutoCompleteChild.jsm" line: 125}]'[JavaScript Error: "Invalid autocomplete selectedIndex" {file: "resource://gre/actors/AutoCompleteChild.jsm" line: 125}]' when calling method: [nsIAutoCompletePopup::selectedIndex]
console.log: WebExtensions: reset-default-search: starting.
console.log: WebExtensions: reset-default-search: No addons in our list are installed.
1640106532850 Marionette INFO Stopped listening on port 17499
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
--marionette" "--remote-debugging-port" "18188" "-no-remote" "-profile" "C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofilejqrbz2"
1640106483817 Marionette INFO Marionette enabled
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofilejqrbz2\\search.json.mozlz4", (void 0)))
DevTools listening on ws://localhost:18188/devtools/browser/27251a11-e0ef-41b7-9ec2-2c2276e00aa7
1640106485786 Marionette INFO Listening on port 18195
1640106486212 RemoteAgent WARN TLS certificate errors will be ignored for this session
JavaScript warning: http://192.168.2.56/mbilling/blue-neptune/app.js?_dc=20210128171437, line 1: unreachable code after return statement
JavaScript error: resource://gre/actors/AutoCompleteChild.jsm, line 125: Error: Invalid autocomplete selectedIndex
JavaScript error: resource://gre/actors/AutoCompleteChild.jsm, line 125: Error: Invalid autocomplete selectedIndex
JavaScript error: resource://gre/modules/LoginManagerChild.jsm, line 194: NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "Invalid autocomplete selectedIndex" {file: "resource://gre/actors/AutoCompleteChild.jsm" line: 125}]'[JavaScript Error: "Invalid autocomplete selectedIndex" {file: "resource://gre/actors/AutoCompleteChild.jsm" line: 125}]' when calling method: [nsIAutoCompletePopup::selectedIndex]
1640106530239 Marionette INFO Stopped listening on port 18195
console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch resource.
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1640106535110 geckodriver INFO Listening on 127.0.0.1:18287
1640106538179 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "18288" "-no-remote" "-profile" "C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofileBOOj2r"
1640106538472 Marionette INFO Marionette enabled
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofileBOOj2r\\search.json.mozlz4", (void 0)))
DevTools listening on ws://localhost:18288/devtools/browser/dbf06b3b-eba0-4e9a-b9b2-36b9acfddad7
1640106540347 Marionette INFO Listening on port 18294
1640106540372 RemoteAgent WARN TLS certificate errors will be ignored for this session
JavaScript warning: http://192.168.2.56/mbilling/blue-neptune/app.js?_dc=20210128171437, line 1: unreachable code after return statement
JavaScript error: resource://gre/actors/AutoCompleteChild.jsm, line 125: Error: Invalid autocomplete selectedIndex
JavaScript error: resource://gre/actors/AutoCompleteChild.jsm, line 125: Error: Invalid autocomplete selectedIndex
JavaScript error: resource://gre/modules/LoginManagerChild.jsm, line 194: NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "Invalid autocomplete selectedIndex" {file: "resource://gre/actors/AutoCompleteChild.jsm" line: 125}]'[JavaScript Error: "Invalid autocomplete selectedIndex" {file: "resource://gre/actors/AutoCompleteChild.jsm" line: 125}]' when calling method: [nsIAutoCompletePopup::selectedIndex]
1640106626850 Marionette INFO Stopped listening on port 18294
console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch resource.
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1640106628834 geckodriver INFO Listening on 127.0.0.1:1106
1640106631898 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "1107" "-no-remote" "-profile" "C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofiledqrzxx"
1640106632211 Marionette INFO Marionette enabled
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofiledqrzxx\\search.json.mozlz4", (void 0)))
DevTools listening on ws://localhost:1107/devtools/browser/7a4cc82b-7042-4812-88aa-8e8381123a48
1640106634069 Marionette INFO Listening on port 1113
1640106634586 RemoteAgent WARN TLS certificate errors will be ignored for this session
JavaScript warning: http://192.168.2.56/mbilling/blue-neptune/app.js?_dc=20210128171437, line 1: unreachable code after return statement
JavaScript error: resource://gre/actors/AutoCompleteChild.jsm, line 125: Error: Invalid autocomplete selectedIndex
JavaScript error: resource://gre/actors/AutoCompleteChild.jsm, line 125: Error: Invalid autocomplete selectedIndex
JavaScript error: resource://gre/modules/LoginManagerChild.jsm, line 194: NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS: [JavaScript Error: "Invalid autocomplete selectedIndex" {file: "resource://gre/actors/AutoCompleteChild.jsm" line: 125}]'[JavaScript Error: "Invalid autocomplete selectedIndex" {file: "resource://gre/actors/AutoCompleteChild.jsm" line: 125}]' when calling method: [nsIAutoCompletePopup::selectedIndex]
1640106657559 Marionette INFO Stopped listening on port 1113
console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch resource.
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1640110944452 geckodriver INFO Listening on 127.0.0.1:1758
1640110947588 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "1759" "-no-remote" "-profile" "C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofileSdmSun"
1640110947899 Marionette INFO Marionette enabled
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofileSdmSun\\search.json.mozlz4", (void 0)))
DevTools listening on ws://localhost:1759/devtools/browser/c61dc74d-6941-4200-bbe9-28712bae3b57
1640110949906 Marionette INFO Listening on port 1765
1640110950277 RemoteAgent WARN TLS certificate errors will be ignored for this session
1640110958398 Marionette INFO Stopped listening on port 1765
console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch resource.
[Parent 22108, IPC I/O Parent] WARNING: file /builds/worker/checkouts/gecko/ipc/chromium/src/base/process_util_win.cc:167
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1640110980881 geckodriver INFO Listening on 127.0.0.1:1841
1640110983940 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "--marionette" "--remote-debugging-port" "1842" "-no-remote" "-profile" "C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofilebRcRQ3"
1640110984247 Marionette INFO Marionette enabled
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\yo\\AppData\\Local\\Temp\\rust_mozprofilebRcRQ3\\search.json.mozlz4", (void 0)))
DevTools listening on ws://localhost:1842/devtools/browser/2ccaad89-0400-456e-9dfb-8b65aeff8741
1640110986122 Marionette INFO Listening on port 1848
1640110986623 RemoteAgent WARN TLS certificate errors will be ignored for this session
JavaScript warning: http://192.168.2.56/mbilling/blue-neptune/app.js?_dc=20210128171437, line 1: unreachable code after return statement
1640111029783 Marionette INFO Stopped listening on port 1848
console.warn: TopSitesFeed: Failed to fetch data from Contile server: NetworkError when attempting to fetch resource.
###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
1640111031544 geckodriver INFO Listening on 127.0.0.1:1931
...@@ -7,7 +7,6 @@ magnus = "http://192.168.2.56/mbilling/index.php" ...@@ -7,7 +7,6 @@ magnus = "http://192.168.2.56/mbilling/index.php"
login = { login = {
'user' : 'root', 'user' : 'root',
'password' : 'NgtAtONgeRaFtsbu', 'password' : 'NgtAtONgeRaFtsbu',
'key' : ''
} }
class Tarifa(Enum): class Tarifa(Enum):
......
from selenium import webdriver
from selenium.webdriver.firefox.options import Options as FirefoxOptions
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.keys import Keys
import time
magnus = "http://192.168.2.56/mbilling/"
login = {
'user' : 'root',
'password' : 'NgtAtONgeRaFtsbu',
}
def authenticate(driver : webdriver.Firefox):
driver.get(magnus)
WebDriverWait(driver,3).until(EC.element_to_be_clickable((By.XPATH, '//*[@id="textfield-1013-inputEl"]'))).send_keys(login['user'])
driver.find_element(By.XPATH,'//*[@id="textfield-1014-inputEl"]').send_keys(login['password'], Keys.ENTER)
def add_new_user(driver : webdriver.Firefox, telefono : str):
# Acceso a Panel
WebDriverWait(driver,3).until(EC.element_to_be_clickable((By.XPATH, '//*[@id="treeview-1176-record-10"]'))).click()
WebDriverWait(driver,3).until(EC.element_to_be_clickable((By.XPATH, '//*[@id="button-1270"]'))).click()
WebDriverWait(driver,3).until(EC.element_to_be_clickable((By.XPATH, '//*[@id="textfield-1291-inputEl"]'))).clear().send_keys(telefono)
if __name__ == '__main__':
options = FirefoxOptions()
#options.add_argument("--headless")
driver = webdriver.Firefox(options=options)
authenticate(driver)
add_new_user(driver, '956367300')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment