The code is very simple, I only write the part that has the problem...
Our site: KAP ---->>>> Date Range Select 3 months range from dropbox and press the search button.
Related Web html:
Excell Selenium Code:
Why doesn't this code work?
Our site: KAP ---->>>> Date Range Select 3 months range from dropbox and press the search button.
Related Web html:
Rich (BB code):
<div class="filter-singledrop mCustomScrollbar _mCS_1 mCS-autoHide mCS_no_scrollbar" style="overflow: visible;"><div id="mCSB_1" class="mCustomScrollBox mCS-minimal-dark mCSB_vertical mCSB_outside" style= "max-height: 261px;" tabindex="0"><div id="mCSB_1_container" class="mCSB_container mCS_y_hidden mCS_no_scrollbar_y" style="position:relative; top:0; left:0;" dir="ltr">
<!---->
<a class="filter-singledropselect" href="#" code="0">Today</a>
<a class="filter-singledropselect selected" href="#" code="1">Yesterday</a>
<a class="filter-singledropselect" href="#" code="30">Last 1 month</a>
<a class="filter-singledropselect" href="#" code="7">Last 1 week</a>
<a class="filter-singledropselect" href="#" code="90">Last 3 months</a>
<a class="filter-singledropselect" href="#" code="180">Last 6 months</a>
<a class="filter-singledropselect" href="#" code="365">Last 1 year</a>
</div></div><div id="mCSB_1_scrollbar_vertical" class="mCSB_scrollTools mCSB_1_scrollbar mCS-minimal-dark mCSB_scrollTools_vertical" style="display: none;"><div class="mCSB_draggerContainer"><div id="mCSB_1_dragger_vertical " class="mCSB_dragger" style="position: absolute; min-height: 50px; height: 0px; top: 0px;" oncontextmenu="return false;"><div class="mCSB_dragger_bar" style="line-height: 50px;"></div></div><div class="mCSB_draggerRail"></div></div> </div></div>
Excell Selenium Code:
XML:
Public Sub container()
Dim connect As New Selenium.ChromeDriver
Set connect = New Selenium.ChromeDriver
baglan.get "https://www.kap.org.tr/tr/bildirim-sorgu"
connect.Wait 1500
'Notification Submission Date Criteria
connect.FindElementByXPath("//*[@id='email-form']/div[6]/div[1]/div[2]/div").Click
connect.Wait 1000
'Select last 3 months
connect.FindElementByXPath("//*[@id='email-form']/div[6]/div[1]/div[2]/div/a[5]").Click
connect.Wait 1000
Click on the 'SEARCH Button'
connect.FindElementByXPath("//*[@id='email-form']/a[1]").Click
connect.Wait 2000
End Sub
Why doesn't this code work?