i'm trying to interact with an element that only appears in the DOM when I manually inspect it (Right Click - Inspect). The element is this button named "Guardar", with the ID 'ctl11_BtnGuardar'. At the moment of trying the interaction is in the IFrame, totally visible, but the console doesn't recognize it.
Then, I try to inspect manually. From there, I can localize the element without any problems
The issue here is: I can't get to click the button in at least any way I know, because I don't have any possitional value to get Selenium to find this element. What can I do in this situation? Sorry if my English is hard to read, not native and thought in this language I could find wiser people.
The button is something like this:
<input oncommand="SubOnClick();" onclick="javascript:{if (typeof(Page_ClientValidate) != 'function' || Page_ClientValidate()) {return disbut(this);}}" type="submit" name="ctl11$BtnGuardar" value="Guardar" id="ctl11_BtnGuardar" class="btnGrabar">
And the css is like this:
.btnGrabar, .btngrabar {
background-color: transparent;
background-image: url(img/2018/btn/ico_guardar.png);
border: none;
text-transform: none;
color: #000000;
font-size: 0.9em;
font-weight: bold;
text-align: right;
background-size: 20px;
min-height: 20px;
background-repeat: no-repeat;
background-position: 50% 5%;
padding: 25px 5px 5px 5px;
margin: 15px 20px 0px 0px;
cursor: pointer;
}
Tried to use a WebDriverWait to find the element, failed Tried to click it by a driver.execute_script("ctl11_BtnGuardar.click()"), failed Tried an actionchains to click it when the virtual pointer was on top of it, failed