-
Notifications
You must be signed in to change notification settings - Fork 0
/
codigo_aprov_geticweb.txt
2646 lines (2243 loc) · 126 KB
/
codigo_aprov_geticweb.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
import requests
import selenium
import json
url = "https://geticweb.transpetro.com.br/api/mob/aprovacao/Chamado/736865/0/1"
payload = "acesso necessario"
headers = {
'Authorization': 'Bearer 8lEHVx3t5kqc46XMjy_qZ7tEQgJSo311IJIqlYtOOo1KKXfurUiexDKDVfzr6Gq7yWJ2XltIuSHV0yCbe4YzeB6BmgQ9lv7h3FsJ8IXAPIfuTZjtEaB04-vZnsqh3pnJvCk7ZflXmxDCkURm8kd4LsvN8WSHW0hW3G7_a1iMPgtbd_OY_MlmCzwwdVP0B3meiB8fLTQzMMjlfVKkFM2a7jNQ7smgG3CSwJ-wM-rOYLjpmnVaZ9zs6xuyao9B-Cxy3NnwXdXJwsLJKsHf_erRg3f6XnRB-6NkMdl-rcqb1GWYw7SicfE5ugH8LtGTN7lyx0GNM-daTteGeS2RdqLWwhuD_hsIxBkZ8ifsYkab5XH9n4kQdCvP_IUlhPRF2k6kbuZy6gVbleKtulAPxgrruHKClQ1kAebJ5w1VhliiKluQEetyEKvSAcvMExJD05pk--r2cuMDqEInhYakbmzxSK3Km9c',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
Traceback (most recent call last):
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 386, in _make_request
self._validate_conn(conn)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 1040, in _validate_conn
conn.connect()
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 414, in connect
self.sock = ssl_wrap_socket(
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 449, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 512, in wrap_socket
return self.sslsocket_class._create(
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1070, in _create
self.do_handshake()
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1341, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 440, in send
resp = conn.urlopen(
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 785, in urlopen
retries = retries.increment(
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='geticweb.transpetro.com.br', port=443): Max retries exceeded with url: /api/mob/aprovacao/Chamado/736865/0/1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#16>", line 1, in <module>
response = requests.request("POST", url, headers=headers, data=payload)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 517, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='geticweb.transpetro.com.br', port=443): Max retries exceeded with url: /api/mob/aprovacao/Chamado/736865/0/1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))
response = requests.request("POST", url, headers=headers, data=payload, verify=False)
Warning (from warnings module):
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 1043
warnings.warn(
InsecureRequestWarning: Unverified HTTPS request is being made to host 'geticweb.transpetro.com.br'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
print (response.text)
{"message":"The request is invalid.","modelState":{"observacao":["Unexpected character encountered while parsing value: a. Path '', line 1, position 1."]}}
clear
Traceback (most recent call last):
File "<pyshell#19>", line 1, in <module>
clear
NameError: name 'clear' is not defined
cls
Traceback (most recent call last):
File "<pyshell#20>", line 1, in <module>
cls
NameError: name 'cls' is not defined
from selenium.webdriver import Chrome
driver = Chrome()
Traceback (most recent call last):
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\common\service.py", line 71, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 966, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1435, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] O sistema não pode encontrar o arquivo especificado
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#43>", line 1, in <module>
driver = Chrome()
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 70, in __init__
super(WebDriver, self).__init__(DesiredCapabilities.CHROME['browserName'], "goog",
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 89, in __init__
self.service.start()
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home
from selenium.webdriver import Chrome
driver = Chrome()
driver.get("https://geticweb.transpetro.com.br")
rom selenium.webdriver.common.keys import Keys
SyntaxError: invalid syntax
from selenium.webdriver.common.keys import Keys
login = driver.find_element_by_id("usuario")
Warning (from warnings module):
File "<pyshell#69>", line 1
DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead
login = driver.find_element(By.id,"usuario")
Traceback (most recent call last):
File "<pyshell#70>", line 1, in <module>
login = driver.find_element(By.id,"usuario")
NameError: name 'By' is not defined
elmnt_email = driver.find_element(By.ID,"usuario")
Traceback (most recent call last):
File "<pyshell#71>", line 1, in <module>
elmnt_email = driver.find_element(By.ID,"usuario")
NameError: name 'By' is not defined
>>> from selenium.webdriver.common.by import By
SyntaxError: invalid syntax
from selenium.webdriver.common.by import By
elmnt_email = driver.find_element(By.ID,"usuario")
elmnt_usuario = driver.find_element(By.ID,"usuario")
elmnt_senha = driver.find_element(By.ID,"senha")
usuario="c23x"
senha="billYje2"
elmnt_usuario.send_keys(usuario)
elmnt_senha.send_keys(senha)
elmnt_botao_login = driver.find_element(By.ID,'login')
driver.execute_script("arguments[0].click();", elmnt_botao_login)
driver.get("https://geticweb.transpetro.com.br/indexAtendente.html#/main/portal/")
elmnt_lista_chamados_aprovacao = driver.find_element(By.className,'corpoItens')
Traceback (most recent call last):
File "<pyshell#84>", line 1, in <module>
elmnt_lista_chamados_aprovacao = driver.find_element(By.className,'corpoItens')
AttributeError: type object 'By' has no attribute 'className'
driver.get("https://geticweb.transpetro.com.br/indexAtendente.html#/main/portal/")
elmnt_lista_chamados_aprovacao = driver.find_element(By.className,'corpoItens')
Traceback (most recent call last):
File "<pyshell#86>", line 1, in <module>
elmnt_lista_chamados_aprovacao = driver.find_element(By.className,'corpoItens')
AttributeError: type object 'By' has no attribute 'className'
elmnt_lista_chamados_aprovacao = driver.find_element(By.class_name,'corpoItens')
Traceback (most recent call last):
File "<pyshell#87>", line 1, in <module>
elmnt_lista_chamados_aprovacao = driver.find_element(By.class_name,'corpoItens')
AttributeError: type object 'By' has no attribute 'class_name'
elmnt_lista_chamados_aprovacao = driver.find_elements_by_class_name('corpoItens')
Warning (from warnings module):
File "<pyshell#88>", line 1
DeprecationWarning: find_elements_by_class_name is deprecated. Please use find_elements(by=By.CLASS_NAME, value=name) instead
elmnt_lista_chamados_aprovacao = find_elements(by=By.CLASS_NAME, value='corpoItens')
Traceback (most recent call last):
File "<pyshell#89>", line 1, in <module>
elmnt_lista_chamados_aprovacao = find_elements(by=By.CLASS_NAME, value='corpoItens')
NameError: name 'find_elements' is not defined
elmnt_lista_chamados_aprovacao = find_element(by=By.CLASS_NAME, value='corpoItens')
Traceback (most recent call last):
File "<pyshell#90>", line 1, in <module>
elmnt_lista_chamados_aprovacao = find_element(by=By.CLASS_NAME, value='corpoItens')
NameError: name 'find_element' is not defined
elmnt_lista_chamados_aprovacao = driver.find_elements(by=By.CLASS_NAME, value='corpoItens')
elmnt_lista_chamados_aprovacao
[]
driver.get("https://geticweb.transpetro.com.br/indexAtendente.html#/main/portal/")
elmnt_lista_chamados_aprovacao = driver.find_elements(by=By.CLASS_NAME, value='corpoItens')
elmnt_lista_chamados_aprovacao
[]
elmnt_chamados_aprov = driver.find_element(By.ID,'Aprovacao')
Traceback (most recent call last):
File "<pyshell#96>", line 1, in <module>
elmnt_chamados_aprov = driver.find_element(By.ID,'Aprovacao')
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="Aprovacao"]"}
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D89500+1021184]
Ordinal0 [0x00D8979B+1021851]
Ordinal0 [0x00DB6502+1205506]
Ordinal0 [0x00DA44E4+1131748]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
tabela_aprovacao=driver.find_element(By.XPATH, '//*[@id="Aprovacao"]/table/tbody')
Traceback (most recent call last):
File "<pyshell#97>", line 1, in <module>
tabela_aprovacao=driver.find_element(By.XPATH, '//*[@id="Aprovacao"]/table/tbody')
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="Aprovacao"]/table/tbody"}
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D89500+1021184]
Ordinal0 [0x00D8979B+1021851]
Ordinal0 [0x00DB6502+1205506]
Ordinal0 [0x00DA44E4+1131748]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
tabela_aprovacao=driver.find_element(By.XPATH,'/html/body/div[1]/form/div/div[1]/div[10]/table/tbody')
Traceback (most recent call last):
File "<pyshell#98>", line 1, in <module>
tabela_aprovacao=driver.find_element(By.XPATH,'/html/body/div[1]/form/div/div[1]/div[10]/table/tbody')
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[1]/form/div/div[1]/div[10]/table/tbody"}
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D89500+1021184]
Ordinal0 [0x00D8979B+1021851]
Ordinal0 [0x00DB6502+1205506]
Ordinal0 [0x00DA44E4+1131748]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
tabela_aprovacao=driver.find_element(By.XPATH,'\/html\/body\/div[1]/form/div/div[1]/div[10]/table/tbody[1]')
Traceback (most recent call last):
File "<pyshell#99>", line 1, in <module>
tabela_aprovacao=driver.find_element(By.XPATH,'\/html\/body\/div[1]/form/div/div[1]/div[10]/table/tbody[1]')
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: Unable to locate an element with the xpath expression \/html\/body\/div[1]/form/div/div[1]/div[10]/table/tbody[1] because of the following error:
SyntaxError: Failed to execute 'evaluate' on 'Document': The string '\/html\/body\/div[1]/form/div/div[1]/div[10]/table/tbody[1]' is not a valid XPath expression.
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D5F0B4+848052]
Ordinal0 [0x00D5EF72+847730]
Ordinal0 [0x00D5F200+848384]
Ordinal0 [0x00D89215+1020437]
Ordinal0 [0x00D8979B+1021851]
Ordinal0 [0x00DB6502+1205506]
Ordinal0 [0x00DA44E4+1131748]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
KeyboardInterrupt
tabela_aprovacao=driver.find_element(By.XPATH,'/html/body/div[1]/form/div/div[1]/div[10]/table/tbody')
Traceback (most recent call last):
File "<pyshell#100>", line 1, in <module>
tabela_aprovacao=driver.find_element(By.XPATH,'/html/body/div[1]/form/div/div[1]/div[10]/table/tbody')
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[1]/form/div/div[1]/div[10]/table/tbody"}
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D89500+1021184]
Ordinal0 [0x00D8979B+1021851]
Ordinal0 [0x00DB6502+1205506]
Ordinal0 [0x00DA44E4+1131748]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
tabela_aprovacao=driver.find_element(By.XPATH,'/html/body/div[1]/form/div/div[1]/div[10]/table/tbody/tr[1])
SyntaxError: unterminated string literal (detected at line 1)
tabela_aprovacao=driver.find_element(By.XPATH,'/html/body/div[1]/form/div/div[1]/div[10]/table/tbody/tr[1]')
Traceback (most recent call last):
File "<pyshell#102>", line 1, in <module>
tabela_aprovacao=driver.find_element(By.XPATH,'/html/body/div[1]/form/div/div[1]/div[10]/table/tbody/tr[1]')
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[1]/form/div/div[1]/div[10]/table/tbody/tr[1]"}
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D89500+1021184]
Ordinal0 [0x00D8979B+1021851]
Ordinal0 [0x00DB6502+1205506]
Ordinal0 [0x00DA44E4+1131748]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
tabela_aprovacao=driver.find_element(By.XPATH,"/html/body/div[1]/form/div/div[1]/div[10]/table/tbody/tr[1]")
Traceback (most recent call last):
File "<pyshell#103>", line 1, in <module>
tabela_aprovacao=driver.find_element(By.XPATH,"/html/body/div[1]/form/div/div[1]/div[10]/table/tbody/tr[1]")
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"/html/body/div[1]/form/div/div[1]/div[10]/table/tbody/tr[1]"}
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D89500+1021184]
Ordinal0 [0x00D8979B+1021851]
Ordinal0 [0x00DB6502+1205506]
Ordinal0 [0x00DA44E4+1131748]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
tabela_aprovacao=driver.find_element(By.XPATH,"//div[@id="Aprovacao"]")
SyntaxError: invalid syntax. Perhaps you forgot a comma?
tabela_aprovacao=driver.find_element(By.XPATH,"//div[@id='Aprovacao']")
Traceback (most recent call last):
File "<pyshell#105>", line 1, in <module>
tabela_aprovacao=driver.find_element(By.XPATH,"//div[@id='Aprovacao']")
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//div[@id='Aprovacao']"}
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D89500+1021184]
Ordinal0 [0x00D8979B+1021851]
Ordinal0 [0x00DB6502+1205506]
Ordinal0 [0x00DA44E4+1131748]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
elmnt_bt_aprov = driver.find_element(By.ID,'btAprovacao')
Traceback (most recent call last):
File "<pyshell#106>", line 1, in <module>
elmnt_bt_aprov = driver.find_element(By.ID,'btAprovacao')
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="btAprovacao"]"}
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D89500+1021184]
Ordinal0 [0x00D8979B+1021851]
Ordinal0 [0x00DB6502+1205506]
Ordinal0 [0x00DA44E4+1131748]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
elmnt_usuario = driver.find_element(By.ID,"usuario")
elmnt_usuario.send_keys(usuario)
elmnt_senha.send_keys(senha)
Traceback (most recent call last):
File "<pyshell#109>", line 1, in <module>
elmnt_senha.send_keys(senha)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webelement.py", line 600, in send_keys
self._execute(Command.SEND_KEYS_TO_ELEMENT,
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webelement.py", line 773, in _execute
return self._parent.execute(command, params)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D5F0B4+848052]
Ordinal0 [0x00D5EF72+847730]
Ordinal0 [0x00D5F200+848384]
Ordinal0 [0x00D89FC6+1023942]
Ordinal0 [0x00D8A0A4+1024164]
Ordinal0 [0x00D82929+993577]
Ordinal0 [0x00DA449C+1131676]
Ordinal0 [0x00D7FC74+982132]
Ordinal0 [0x00DA46B4+1132212]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
elmnt_senha.send_keys(senha)
Traceback (most recent call last):
File "<pyshell#110>", line 1, in <module>
elmnt_senha.send_keys(senha)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webelement.py", line 600, in send_keys
self._execute(Command.SEND_KEYS_TO_ELEMENT,
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webelement.py", line 773, in _execute
return self._parent.execute(command, params)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element is not attached to the page document
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D5F0B4+848052]
Ordinal0 [0x00D5EF72+847730]
Ordinal0 [0x00D5F200+848384]
Ordinal0 [0x00D89FC6+1023942]
Ordinal0 [0x00D8A0A4+1024164]
Ordinal0 [0x00D82929+993577]
Ordinal0 [0x00DA449C+1131676]
Ordinal0 [0x00D7FC74+982132]
Ordinal0 [0x00DA46B4+1132212]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
elmnt_senha = driver.find_element(By.ID,"senha")
elmnt_senha.send_keys(senha)
elmnt_botao_login = driver.find_element(By.ID,'login')
driver.execute_script("arguments[0].click();", elmnt_botao_login)
driver.get("https://geticweb.transpetro.com.br/indexAtendente.html#/main/portal/")
elmnt_chamados_aprov = driver.find_element(By.ID,'Aprovacao')
Traceback (most recent call last):
File "<pyshell#116>", line 1, in <module>
elmnt_chamados_aprov = driver.find_element(By.ID,'Aprovacao')
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="Aprovacao"]"}
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D89500+1021184]
Ordinal0 [0x00D8979B+1021851]
Ordinal0 [0x00DB6502+1205506]
Ordinal0 [0x00DA44E4+1131748]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
tabela_aprovacao=driver.find_element(By.XPATH,"//div[contains(@id,'Aprovacao')]")
Traceback (most recent call last):
File "<pyshell#117>", line 1, in <module>
tabela_aprovacao=driver.find_element(By.XPATH,"//div[contains(@id,'Aprovacao')]")
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//div[contains(@id,'Aprovacao')]"}
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D89500+1021184]
Ordinal0 [0x00D8979B+1021851]
Ordinal0 [0x00DB6502+1205506]
Ordinal0 [0x00DA44E4+1131748]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
elmnt_chamados_aprov = driver.find_element(By.ID,'btAprovacao')
Traceback (most recent call last):
File "<pyshell#118>", line 1, in <module>
elmnt_chamados_aprov = driver.find_element(By.ID,'btAprovacao')
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="btAprovacao"]"}
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D89500+1021184]
Ordinal0 [0x00D8979B+1021851]
Ordinal0 [0x00DB6502+1205506]
Ordinal0 [0x00DA44E4+1131748]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
elmnt_chamados_aprov = driver.find_element(By.ID,'btAprovacao')
Traceback (most recent call last):
File "<pyshell#119>", line 1, in <module>
elmnt_chamados_aprov = driver.find_element(By.ID,'btAprovacao')
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 1251, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="btAprovacao"]"}
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00D89500+1021184]
Ordinal0 [0x00D8979B+1021851]
Ordinal0 [0x00DB6502+1205506]
Ordinal0 [0x00DA44E4+1131748]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
elmnt_chamados_aprov = driver.find_element(By.name,'btAprovacao')
Traceback (most recent call last):
File "<pyshell#120>", line 1, in <module>
elmnt_chamados_aprov = driver.find_element(By.name,'btAprovacao')
AttributeError: type object 'By' has no attribute 'name'
elmnt_chamados_aprov = driver.find_elements(By.ID,'btAprovacao')
elmnt_chamados_aprov
[]
elmnt_chamados_aprov = driver.find_elements(By.css_selector,'div')
Traceback (most recent call last):
File "<pyshell#123>", line 1, in <module>
elmnt_chamados_aprov = driver.find_elements(By.css_selector,'div')
AttributeError: type object 'By' has no attribute 'css_selector'
teste=driver.find_elements_by_css_selector('div')
Warning (from warnings module):
File "<pyshell#124>", line 2
DeprecationWarning: find_elements_by_css_selector is deprecated. Please use find_elements(by=By.CSS_SELECTOR, value=css_selector) instead
elmnt_chamados_aprov = driver.find_elements(By.CSS_SELECTOR,'div')
elmnt_chamados_aprov
elmnt_chamados_aprov = driver.find_elements(By.CSS_SELECTOR,'div, id')
elmnt_chamados_aprov
elmnt_chamados_aprov = driver.find_elements(By.CSS_SELECTOR,'div id')
elmnt_chamados_aprov
[]
elmnt_chamados_aprov = driver.find_elements(By.CSS_SELECTOR,'id')
elmnt_chamados_aprov
[]
driver.find_elements(By.CSS_SELECTOR,'id')
[]
driver.find_elements(By.CSS_SELECTOR,'[id]')
driver.find_elements(By.CSS_SELECTOR,'div [id]')
[<selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="b85fcabf-1e6c-4223-915f-e86a30262843")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="12925e9b-1aff-4fd8-8951-1908d7fb66c0")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="18ba4673-4b69-46b7-a895-fc36c3a386c8")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="d2c89164-26b7-42ab-bcbe-05780600e135")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="4b9f7398-cfe9-4e57-9060-290ecf0b1163")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="e7d6cddb-28d8-430a-9bf5-621a3afe8718")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="884d8b25-33ff-4433-9de4-f021a314a116")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="4cc60969-2904-4c5f-af70-e231bd152a7c")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="264df493-d9d7-48dc-93f7-902798211930")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="7371ac6f-77eb-487d-9c8d-b008adfc8f9b")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="272ec427-28ec-43c3-a364-8220e230e738")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="6ed83276-cf19-4edf-bb7f-fb38f59d8970")>]
driver.find_elements(By.CSS_SELECTOR,'div, [id]')
driver.find_elements(By.CSS_SELECTOR,'[id*=usuario]')
[<selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="b85fcabf-1e6c-4223-915f-e86a30262843")>]
driver.find_elements(By.CSS_SELECTOR,'[id*=Aprovacao]')
[]
driver.find_elements(By.CSS_SELECTOR,'[id*=ovacao]')
[]
driver.find_elements(By.CSS_SELECTOR,'div [id]')
[<selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="05d34c45-fa0f-4af7-8a04-35a7007df5e9")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="6514fc72-4b7a-41aa-ab14-ded5e5cd193c")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="e5894741-9ab8-4ea6-a270-a0937534c740")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="04eb6e69-b4a3-406c-86ad-d34aed33c0f6")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="28a225c8-9786-4fb7-b210-233f93d81154")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="4c6fb37f-7786-4dea-b777-7b73c6b58019")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="c6759d32-61eb-44d4-8cc2-fa881886f0e5")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="b5781af7-7d8f-4c00-b0e9-873fa369443d")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="69ec1e1b-def2-4a2a-8b2b-6c62604aab25")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="c2ab134f-c2cd-4b65-807b-d550b33c9ac0")>, <selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="5894d652-7f4a-4fbe-8a3c-0a00d3795e21")>]
driver.find_elements(By.CSS_SELECTOR,'div.corpoItens')
[]
driver.find_elements(By.CSS_SELECTOR,'[id*=Conteudo]')
[]
driver.find_elements(By.CSS_SELECTOR,'div.ColunaItens')
[]
driver.find_elements(By.CSS_SELECTOR,'[id*=iframeTeste]')
[<selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="5894d652-7f4a-4fbe-8a3c-0a00d3795e21")>]
frame = driver.find_elements(By.CSS_SELECTOR,'[id*=iframeTeste]')
driver.switch_to.frame(frame)
Traceback (most recent call last):
File "<pyshell#146>", line 1, in <module>
driver.switch_to.frame(frame)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\switch_to.py", line 94, in frame
self._driver.execute(Command.SWITCH_TO_FRAME, {'id': frame_reference})
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute
self.error_handler.check_response(response)
File "C:\Users\c23x\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid 'id'
(Session info: chrome=102.0.5005.61)
Stacktrace:
Backtrace:
Ordinal0 [0x00EDD953+2414931]
Ordinal0 [0x00E6F5E1+1963489]
Ordinal0 [0x00D5C6B8+837304]
Ordinal0 [0x00DB6257+1204823]
Ordinal0 [0x00DA449C+1131676]
Ordinal0 [0x00DB4812+1198098]
Ordinal0 [0x00DA42B6+1131190]
Ordinal0 [0x00D7E860+976992]
Ordinal0 [0x00D7F756+980822]
GetHandleVerifier [0x0114CC62+2510274]
GetHandleVerifier [0x0113F760+2455744]
GetHandleVerifier [0x00F6EABA+551962]
GetHandleVerifier [0x00F6D916+547446]
Ordinal0 [0x00E75F3B+1990459]
Ordinal0 [0x00E7A898+2009240]
Ordinal0 [0x00E7A985+2009477]
Ordinal0 [0x00E83AD1+2046673]
BaseThreadInitThunk [0x757D6359+25]
RtlGetAppContainerNamedObjectPath [0x779B87A4+228]
RtlGetAppContainerNamedObjectPath [0x779B8774+180]
frame = driver.find_elements(By.CSS_SELECTOR,'div.tool_forms iframe')
frame
[]
frame = driver.find_elements(By.CSS_SELECTOR,'[id*=iframeTeste]')
frame
[<selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="5894d652-7f4a-4fbe-8a3c-0a00d3795e21")>]
driver.find_elements(By.CSS_SELECTOR,'div.iframeAntigo iframe')
[]
driver.find_element(By.CSS_SELECTOR,'[id*=iframeTeste]')
<selenium.webdriver.remote.webelement.WebElement (session="68e66acfc80c29f28485e018433e6011", element="5894d652-7f4a-4fbe-8a3c-0a00d3795e21")>
frame = driver.find_element(By.CSS_SELECTOR,'[id*=iframeTeste]')
driver.switch_to.frame(frame)
driver.find_elements(By.CSS_SELECTOR,'[id*=Aprovacao]')