I'm currently writing some automation with Salesforce, Python and Selenium. My problem is that some of the Dynamic Elements are not reachable. However, I would like to know a better way to build a better test.
Example:
<input lightning-input_input="" type="text" id="input-45" maxlength="120" name="Name" required="" class="slds-input" aria-describedby="help-message-45"> Python Code:
driver.find_element_by_css_selector('slds-template__container > input[name="Name]').send_keys('MockData Test') The problem is that is not calling this element it says that is unable to locate or find the element. Does anyone know a better way to do this?
name="Name"? If not, just drop the first part of your selector and just useinput[name="Name"].