Posts

Showing posts with the label internet-explorer

Tick Checkbox IE Automation Excel VBA

Image
Clash Royale CLAN TAG #URR8PPP Tick Checkbox IE Automation Excel VBA I'm trying to export a file from website but for that i have to select the elements i want to export from a checkbox. The HTML code for the checkbox i want to tick is: <input id="MainReport_ctl04_ctl09_divDropDown_ctl00" type="checkbox" name="MainReport$ctl04$ctl09$divDropDown$ctl00" onclick="$get('MainReport_ctl04_ctl09').control.OnSelectAllClick(this);" class=""> I've tried: With IE.document.getElementsByName("MainReport$ctl04$ctl09$divDropDown$ctl00") .Item.Click end with And With IE.document.getElementsByName("MainReport$ctl04$ctl09$divDropDown$ctl00") .Item(0).Checked = True End With And Set obj = IE.document.getElementsByName("MainReport$ctl04$ctl09$divDropDown$ctl00") obj.FireEvent ("onclick") But nothing seems to work. Could someone help me please? Thank u in advanced! ...

Popup window blocks any further action by Selenium webdriver on IE

Image
Clash Royale CLAN TAG #URR8PPP Popup window blocks any further action by Selenium webdriver on IE I am having pop-up window with "Ok/Cancel" using IE11. However, with selenium webdriver, I am unable perform anything on them. I have tried both: alert.accept() and switchto.window() without any success. I am unable to use dev tool on this popup as well. It wont allow me to do anything on the parent window. The keyboard "ENTER" and "ESC" works on this manually. ***Option1:*** try { WebDriverWait wait = new WebDriverWait(myDriver, 2); wait.until(ExpectedConditions.alertIsPresent()); Alert alert = myDriver.switchTo().alert(); alert.accept(); } catch (Exception e) { //exception handling } ***Option2:*** for(String winHandle : myDriver.getWindowHandles()){ if(!winHandle.equals(parentWindow)){ myDriver.switchTo().window(winHandle); try { WebDriverWait wai...