Duvida Sobre Selenium

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Duvida Sobre Selenium

Duvida Sobre Selenium

Post by thalesduarte » 23 Sep 2021, 10:12

Olá, preciso de uma ajuda, estou estudando o uso do Selenium para automatização de browse, porém não estou conseguindo fazer uma simples coisas, que seria referenciar um element id para o script escrever algo na célula, poderiam me auxiliar ou me informar se é possível fazer isso?

Segue o code.

Code: Select all

driver:= ComObjCreate("Selenium.ChromeDriver")
url:="https://directa.natal.rn.gov.br/open.do?sys=DIR&a=wqf45tfes"
driver.Get(url)
driver.findElementById("usuario").sendKeys("Meunome")

Grato pela atenção!

Top