boa noite,
no ie ele foi normal ie.Document.getElementById("sendemail_label").Click
já no Selenium...
tenho esse XPath = //*[@id="sendemail_label"]
fiz esse procedimento e ele não executa alguma sugestão? deveria clicar no botão enviar
driver.FindElementByXPath("//*[@id=""sendemail_label""]").Click
esse é parte do html:
<button name="sendemail" id="sendemail" class="awesomeButton buttonLarge primaryLargeButton" type="button" onclick="if (!submitBSMSForm()){ return false; } else { document.getElementById('sendemail').click() }"><span id="sendemail_label" class="button_label">Enviar e-mail</span></button>
Vídeo recomendado
https://youtu.be/diWPPPhW-9E
https://youtu.be/diWPPPhW-9E
Selenium click
-
- Colaborador
- Mensagens: 17
- Registrado em: Qua Dez 21, 2011 8:42 pm
-
- Colaborador
- Mensagens: 17
- Registrado em: Qua Dez 21, 2011 8:42 pm