in Education by
I have three text fields and submit button on a browser page.. Lets say A, B, C, and submit (All fields are optional) If I enter a value manually in field A. Then Field B and Field C gets disabled and if i enter in either B or C, Field A get disabled. Click on Search button, No Error displayed. But doing the same thing with Selenium automation in C# language, i.e. Entering a value in A, Other two fields are not getting disabled and trowing error after clicking on Submit button, saying Enter a value for B, Enter a Value for C. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Welcome to SO. You can trigger the change event after entering the value in the eleInputboxA IJavaScriptExecutor js = (IJavaScriptExecutor)driver; js.ExecuteScript("arguments[0].dispatchEvent(new Event('change', {'bubbles': true,'cancelable': true}));",eleInputboxA); *Change the event name based on the associated event.

Related questions

0 votes
    When are the keyboard events fired? (a) When the user manually calls the button (b) When the user ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    I am new in software testing and looking to enhance my knowledge. I want to know in detail about: What is ... answer here. Thanks! Select the correct answer from above options...
asked Jan 19, 2022 in Education by JackTerrance
0 votes
    I want to put value using webdriver, This is the command I am using driver.findElement(By.name("name")).sendKeys(" ... way to do so ? Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    When you get fired from your job and you determine it is because your boss dislikes you, you are most likely ... (d) Self-serving bias Please answer the above question....
asked Oct 22, 2022 in Education by JackTerrance
0 votes
    Which event is fired when Cordova APIs are loaded and ready to use? Please select the correct options from below (a)apiready (b)deviceready (c)appready (d)None of the options...
asked Dec 11, 2020 in Education by Editorial Staff
0 votes
    I am using mac mojave 10.14.3, JDK 1.8, Serenity core 2.0.40 (latest) to develop my test ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 23, 2022 in Education by JackTerrance
0 votes
    Which of the following is not a component of Selenium? 1. Web Driver 2. A bug database 3. Integrated Development Environment (IDE) 4. Grid...
asked Jul 11, 2021 in Technology by JackTerrance
0 votes
    When the cell is said to be fired? (a) if potential of body reaches a steady threshold values (b) if there is ... heart (d) none of the mentioned Please answer the above question....
asked Sep 21, 2022 in Education by JackTerrance
0 votes
    What is the critical threshold voltage value at which neuron get fired? (a) 30mv (b) 20mv (c) 25mv (d) 10mv Please answer the above question....
asked Sep 21, 2022 in Education by JackTerrance
0 votes
    Does there is any effect on particular neuron which got repeatedly fired ? (a) yes (b) no This question ... Neural Networks of Neural Networks Please answer the above question....
asked Sep 21, 2022 in Education by JackTerrance
0 votes
    Basically I recently added a search-box and button to my asp.net site. Issue I'm having now is ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 17, 2022 in Education by JackTerrance
0 votes
    When is the mouseover event fired? (a) When mouse is moved over a new element (b) When mouse is ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    When is the mouseout event fired? (a) When mouse is no longer over an element (b) When mouse is ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
...