M
Mostafa Salaheldien
Guest
hello every one,
I'm using Webbrowser control
i would like to get tr contain from this webpage with ID condition
i want to get that :
1- data-block-id - this is the ID for this tr and put it in textbox1
2-data-room-name - it will shown room name and put it textbox2
3-bui-price-display__value prco-ltr-center-align-helper prco-font16-helper - it will display room price and put it textbox3
<tr data-block-id="150556201_195357302_0_42_0" class="hprt-table-cheapest-block hprt-table-cheapest-block-fix js-hprt-table-cheapest-block" data-et-view="">
<td class="hprt-table-cell -first hprt-table-cell-roomtype droom_seperator" rowspan="5">
<div class="hprt-block" data-et-view="">
<div class="hprt-roomtype-block hprt-roomtype-name" data-et-mouseenter="goal:hp_rt_hovering_room_name">
<a name="RD150556201" class="hprt-roomtype-scroll-target"></a>
<a class="hprt-roomtype-link" href="#RD150556201" data-room-id="150556201" id="room_type_id_150556201" data-room-name="Standard King Room- Double Occupancy" data-et-click="">
<span class="u-display-inline-block hprt-roomtype-name-arrow"></span>
<span class="hprt-roomtype-icon-link ">
Standard King Room- Double Occupancy
</span>
</a>
<span class="hp-rt-just-booked js--hp-rt-just-booked anim fadeIn">
<i class="bicon bicon-alarm"></i>
Last booked for your dates 3 hours ago
</span>
</div>
<div class="hprt-roomtype-block ">
</div>
<div class="hprt-roomtype-bed">
<div class="bed-types-wrapper
">
<ul class="rt-bed-types">
<li class="rt-bed-type">
<span>
1 extra-large double bed
<i class="bicon bicon-double"></i>
</span>
</li>
</ul>
</div>
</div>
<div data-et-view="ZdffZZLJbFcLIPCOGNHC:2 ZdffZZLJbFcLIPCOGNHC:5"></div>
<div class="hprt-roomtype-block">
<div class="hprt-facilities-block" data-component="hotel/new-rooms-table/highlighted-facilities">
<span class="hprt-facilities-facility" data-name-en="">
<i class="hprt-facilities-icon bicon-roomsize"></i>
<span>
32 m²
</span>
</span>
<span class="hprt-facilities-facility" data-name-en="Airconditioning">
<i class="hprt-facilities-icon bicon-airconditioning"></i>
<span>
Air conditioning
</span>
</span>
<span class="hprt-facilities-facility" data-name-en="">
<i class="hprt-facilities-icon bicon-wifi"></i>
<span>
Free WiFi
</span>
</span>
<ul class="hprt-facilities-others" data-et-view=" ">
<li>
<span class="hprt-facilities-facility" data-name-en="Coffee/Tea maker">
• Tea/Coffee Maker
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Safe Deposit Box">
• Safety Deposit Box
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="TV">
• TV
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Telephone">
• Telephone
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Hair Dryer">
• Hairdryer
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Bath-robe">
• Bathrobe
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Ironing facilities">
• Ironing Facilities
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Free Toiletries">
• Free toiletries
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Toilet">
• Toilet
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Slippers">
• Slippers
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Bath or Shower">
• Bath or Shower
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Interconnecting Room(s) available">
• Interconnected room(s) available
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Tiled / Marble floor">
• Tile/Marble floor
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Wake Up Service">
• Wake-up service
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Wardrobe/Closet">
• Wardrobe or closet
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Towels">
• Towels
</span>
</li>
</ul>
</div>
</div>
<div class="hprt-roomtype-block">
<div class="hptr-taxinfo-block">
<div class="hptr-taxinfo-title">
Prices are per room
</div>
</div>
</div>
</div>
</td>
<td class="hprt-table-cell hprt-table-cell-occupancy
">
<div class="hprt-block">
<div class="c-occupancy-icons hprt-occupancy-occupancy-info " data-et-mouseenter="goal:hp_rt_hovering_occupancy" style="font-size: 13px; color: #000000">
<span class="c-occupancy-icons__adults " aria-hidden="true">
<i class="bicon bicon-occupancy"></i><i class="bicon bicon-occupancy"></i>
</span>
<span class="bui-u-sr-only">
Max persons: 2
</span>
</div>
</div>
</td>
<td class="hprt-table-cell hprt-table-cell-price">
<div class="hprt-price-block ">
<div class="hprt-price-deal-badge">
</div>
<div class="prco-wrapper bui-price-display prco-sr-default-assembly-wrapper prc-d-sr-wrapper">
<div class="bui-price-display__value prco-ltr-center-align-helper prco-font16-helper" aria-hidden="true">
AED 191
</div>
<div class="prd-taxes-and-fees-under-price prco-inline-block-maker-helper on-hpage blockuid-150556201_195357302_0_42_0" data-excl-charges-raw="58.00" data-cur-stage="2"> +AED 58 taxes and charges </div>
</div>
<p class="hprt-price-deal-message urgency_message_red test2">Great value</p>
</div>
</td>
<td class="hprt-table-cell hprt-table-cell-conditions
">
<div class="hprt-block ">
<ul class="hprt-conditions">
<li class="jq_tooltip rt_clean_up_options" data-et-mouseenter="goal:hp_rt_hovering_mealplan " data-title="
<span
class=" review-score-widget review-score-widget__very_good review-score-widget__text-only review-score-widget__inline review-score-widget__12 hp-rt__policy__item__tooltip "
>
<span class="review-score-badge" aria-label="Scored 8.0 ">
8.0
</span>
<span class="review-score-widget__text" aria-label="Rated very good">
Very good
</span>
<span
class="review-score-widget__subtext" aria-label=" from reviews"
>
from 2819 breakfast reviews
</span>
</span>
" id="b_tt_holder_1">
<span class="bicon-coffee mp-icon meal-plan-icon"></span>
<span class="review-score-word--highlighted"> Very good </span> breakfast AED 40
</li>
<li class="" data-et-mouseenter=" goal:hp_rt_hovering_non_refundable ">
<span>
<strong>Non-refundable</strong>
</span>
</li>
</ul>
<button type="button" class="hprt-conditions-tooltip rt_accessible_tooltip" data-policy-long-id="rate_policies_id_150556201_195357302_0_42_0" data-tooltip-position="top" data-et-mouseenter=" goal:hp_rt_conditions_tooltip_viewed " data-tooltip-text="
<p>
<strong>Meals:</strong>
Buffet breakfast costs AED&nbsp;40 per person per night.
Lunch costs AED&nbsp;50 per person per night.
Dinner costs AED&nbsp;60 per person per night.
</p>
<p>
<strong>
<strong>Non-refundable</strong>
:
</strong>
You will be charged the total price if you cancel your booking.
</p>
" aria-describedby="current-tooltip">
<svg class="bk-icon -sprite-ico_i_rt bui__icon_ico_i_rt" height="13" width="13" viewBox="0 0 13 13" role="presentation" aria-hidden="true"><circle fill="#0096FF" cx="6.5" cy="6.5" r="6.5"></circle><path fill="#FFF" d="M3.9 4.2c.8-2.2 4.8-2.4 5.4.1.3 1.3-.7 2.2-1.7 3.1-.4.3-.3 1.1-.3 1.1H5.8c-.1 0 0-.8 0-.8.2-1.3 2-1.7 1.8-3.1-.1-.6-.7-.8-1.2-.7-1 .2-.9 1.5-.9 1.5H3.8c-.1-.4 0-.8.1-1.2.1-.3-.1.4 0 0zm3.5 5V11H5.6V9.2h1.8z"></path></svg>
<span class="bui-button__text invisible_spoken">More details on meals and payment options</span>
</button>
<span id="rate_policies_id_150556201_195357302_0_42_0" class="invisible_spoken bui-u-sr-only rate_policies_long">
<p>
<strong>Meals:</strong>
Buffet breakfast costs AED 40 per person per night.
Lunch costs AED 50 per person per night.
Dinner costs AED 60 per person per night.
</p>
<p>
<strong>
<strong>Non-refundable</strong>
:
</strong>
You will be charged the total price if you cancel your booking.
</p>
</span>
</div>
</td>
<td class="hprt-table-cell hprt-table-room-select ">
<div class="hprt-block">
<label for="hprt_nos_select_150556201_195357302_0_42_0"><span class="invisible_spoken">Select rooms</span></label>
<select class="hprt-nos-select" name="nr_rooms_150556201_195357302_0_42_0" data-component="hotel/new-rooms-table/select-rooms" data-room-id="150556201" data-block-id="150556201_195357302_0_42_0" data-is-fflex-selected="0" id="hprt_nos_select_150556201_195357302_0_42_0" aria-describedby="room_type_id_150556201 rate_price_id_150556201_195357302_0_42_0 rate_policies_id_150556201_195357302_0_42_0">
<option value="0">
0
</option>
<option value="1">
1
(AED 191.10)
</option>
<option value="2">
2
(AED 382.20)
</option>
<option value="3">
3
(AED 573.30)
</option>
<option value="4">
4
(AED 764.40)
</option>
<option value="5">
5
(AED 955.50)
</option>
<option value="6">
6
(AED 1,146.60)
</option>
<option value="7">
7
(AED 1,337.70)
</option>
<option value="8">
8
(AED 1,528.80)
</option>
<option value="9">
9
(AED 1,719.90)
</option>
<option value="10">
10
(AED 1,911)
</option>
</select>
</div>
</td>
</tr>
thanks in advance
Continue reading...
I'm using Webbrowser control
i would like to get tr contain from this webpage with ID condition
i want to get that :
1- data-block-id - this is the ID for this tr and put it in textbox1
2-data-room-name - it will shown room name and put it textbox2
3-bui-price-display__value prco-ltr-center-align-helper prco-font16-helper - it will display room price and put it textbox3
<tr data-block-id="150556201_195357302_0_42_0" class="hprt-table-cheapest-block hprt-table-cheapest-block-fix js-hprt-table-cheapest-block" data-et-view="">
<td class="hprt-table-cell -first hprt-table-cell-roomtype droom_seperator" rowspan="5">
<div class="hprt-block" data-et-view="">
<div class="hprt-roomtype-block hprt-roomtype-name" data-et-mouseenter="goal:hp_rt_hovering_room_name">
<a name="RD150556201" class="hprt-roomtype-scroll-target"></a>
<a class="hprt-roomtype-link" href="#RD150556201" data-room-id="150556201" id="room_type_id_150556201" data-room-name="Standard King Room- Double Occupancy" data-et-click="">
<span class="u-display-inline-block hprt-roomtype-name-arrow"></span>
<span class="hprt-roomtype-icon-link ">
Standard King Room- Double Occupancy
</span>
</a>
<span class="hp-rt-just-booked js--hp-rt-just-booked anim fadeIn">
<i class="bicon bicon-alarm"></i>
Last booked for your dates 3 hours ago
</span>
</div>
<div class="hprt-roomtype-block ">
</div>
<div class="hprt-roomtype-bed">
<div class="bed-types-wrapper
">
<ul class="rt-bed-types">
<li class="rt-bed-type">
<span>
1 extra-large double bed
<i class="bicon bicon-double"></i>
</span>
</li>
</ul>
</div>
</div>
<div data-et-view="ZdffZZLJbFcLIPCOGNHC:2 ZdffZZLJbFcLIPCOGNHC:5"></div>
<div class="hprt-roomtype-block">
<div class="hprt-facilities-block" data-component="hotel/new-rooms-table/highlighted-facilities">
<span class="hprt-facilities-facility" data-name-en="">
<i class="hprt-facilities-icon bicon-roomsize"></i>
<span>
32 m²
</span>
</span>
<span class="hprt-facilities-facility" data-name-en="Airconditioning">
<i class="hprt-facilities-icon bicon-airconditioning"></i>
<span>
Air conditioning
</span>
</span>
<span class="hprt-facilities-facility" data-name-en="">
<i class="hprt-facilities-icon bicon-wifi"></i>
<span>
Free WiFi
</span>
</span>
<ul class="hprt-facilities-others" data-et-view=" ">
<li>
<span class="hprt-facilities-facility" data-name-en="Coffee/Tea maker">
• Tea/Coffee Maker
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Safe Deposit Box">
• Safety Deposit Box
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="TV">
• TV
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Telephone">
• Telephone
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Hair Dryer">
• Hairdryer
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Bath-robe">
• Bathrobe
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Ironing facilities">
• Ironing Facilities
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Free Toiletries">
• Free toiletries
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Toilet">
• Toilet
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Slippers">
• Slippers
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Bath or Shower">
• Bath or Shower
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Interconnecting Room(s) available">
• Interconnected room(s) available
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Tiled / Marble floor">
• Tile/Marble floor
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Wake Up Service">
• Wake-up service
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Wardrobe/Closet">
• Wardrobe or closet
</span>
</li>
<li>
<span class="hprt-facilities-facility" data-name-en="Towels">
• Towels
</span>
</li>
</ul>
</div>
</div>
<div class="hprt-roomtype-block">
<div class="hptr-taxinfo-block">
<div class="hptr-taxinfo-title">
Prices are per room
</div>
</div>
</div>
</div>
</td>
<td class="hprt-table-cell hprt-table-cell-occupancy
">
<div class="hprt-block">
<div class="c-occupancy-icons hprt-occupancy-occupancy-info " data-et-mouseenter="goal:hp_rt_hovering_occupancy" style="font-size: 13px; color: #000000">
<span class="c-occupancy-icons__adults " aria-hidden="true">
<i class="bicon bicon-occupancy"></i><i class="bicon bicon-occupancy"></i>
</span>
<span class="bui-u-sr-only">
Max persons: 2
</span>
</div>
</div>
</td>
<td class="hprt-table-cell hprt-table-cell-price">
<div class="hprt-price-block ">
<div class="hprt-price-deal-badge">
</div>
<div class="prco-wrapper bui-price-display prco-sr-default-assembly-wrapper prc-d-sr-wrapper">
<div class="bui-price-display__value prco-ltr-center-align-helper prco-font16-helper" aria-hidden="true">
AED 191
</div>
<div class="prd-taxes-and-fees-under-price prco-inline-block-maker-helper on-hpage blockuid-150556201_195357302_0_42_0" data-excl-charges-raw="58.00" data-cur-stage="2"> +AED 58 taxes and charges </div>
</div>
<p class="hprt-price-deal-message urgency_message_red test2">Great value</p>
</div>
</td>
<td class="hprt-table-cell hprt-table-cell-conditions
">
<div class="hprt-block ">
<ul class="hprt-conditions">
<li class="jq_tooltip rt_clean_up_options" data-et-mouseenter="goal:hp_rt_hovering_mealplan " data-title="
<span
class=" review-score-widget review-score-widget__very_good review-score-widget__text-only review-score-widget__inline review-score-widget__12 hp-rt__policy__item__tooltip "
>
<span class="review-score-badge" aria-label="Scored 8.0 ">
8.0
</span>
<span class="review-score-widget__text" aria-label="Rated very good">
Very good
</span>
<span
class="review-score-widget__subtext" aria-label=" from reviews"
>
from 2819 breakfast reviews
</span>
</span>
" id="b_tt_holder_1">
<span class="bicon-coffee mp-icon meal-plan-icon"></span>
<span class="review-score-word--highlighted"> Very good </span> breakfast AED 40
</li>
<li class="" data-et-mouseenter=" goal:hp_rt_hovering_non_refundable ">
<span>
<strong>Non-refundable</strong>
</span>
</li>
</ul>
<button type="button" class="hprt-conditions-tooltip rt_accessible_tooltip" data-policy-long-id="rate_policies_id_150556201_195357302_0_42_0" data-tooltip-position="top" data-et-mouseenter=" goal:hp_rt_conditions_tooltip_viewed " data-tooltip-text="
<p>
<strong>Meals:</strong>
Buffet breakfast costs AED&nbsp;40 per person per night.
Lunch costs AED&nbsp;50 per person per night.
Dinner costs AED&nbsp;60 per person per night.
</p>
<p>
<strong>
<strong>Non-refundable</strong>
:
</strong>
You will be charged the total price if you cancel your booking.
</p>
" aria-describedby="current-tooltip">
<svg class="bk-icon -sprite-ico_i_rt bui__icon_ico_i_rt" height="13" width="13" viewBox="0 0 13 13" role="presentation" aria-hidden="true"><circle fill="#0096FF" cx="6.5" cy="6.5" r="6.5"></circle><path fill="#FFF" d="M3.9 4.2c.8-2.2 4.8-2.4 5.4.1.3 1.3-.7 2.2-1.7 3.1-.4.3-.3 1.1-.3 1.1H5.8c-.1 0 0-.8 0-.8.2-1.3 2-1.7 1.8-3.1-.1-.6-.7-.8-1.2-.7-1 .2-.9 1.5-.9 1.5H3.8c-.1-.4 0-.8.1-1.2.1-.3-.1.4 0 0zm3.5 5V11H5.6V9.2h1.8z"></path></svg>
<span class="bui-button__text invisible_spoken">More details on meals and payment options</span>
</button>
<span id="rate_policies_id_150556201_195357302_0_42_0" class="invisible_spoken bui-u-sr-only rate_policies_long">
<p>
<strong>Meals:</strong>
Buffet breakfast costs AED 40 per person per night.
Lunch costs AED 50 per person per night.
Dinner costs AED 60 per person per night.
</p>
<p>
<strong>
<strong>Non-refundable</strong>
:
</strong>
You will be charged the total price if you cancel your booking.
</p>
</span>
</div>
</td>
<td class="hprt-table-cell hprt-table-room-select ">
<div class="hprt-block">
<label for="hprt_nos_select_150556201_195357302_0_42_0"><span class="invisible_spoken">Select rooms</span></label>
<select class="hprt-nos-select" name="nr_rooms_150556201_195357302_0_42_0" data-component="hotel/new-rooms-table/select-rooms" data-room-id="150556201" data-block-id="150556201_195357302_0_42_0" data-is-fflex-selected="0" id="hprt_nos_select_150556201_195357302_0_42_0" aria-describedby="room_type_id_150556201 rate_price_id_150556201_195357302_0_42_0 rate_policies_id_150556201_195357302_0_42_0">
<option value="0">
0
</option>
<option value="1">
1
(AED 191.10)
</option>
<option value="2">
2
(AED 382.20)
</option>
<option value="3">
3
(AED 573.30)
</option>
<option value="4">
4
(AED 764.40)
</option>
<option value="5">
5
(AED 955.50)
</option>
<option value="6">
6
(AED 1,146.60)
</option>
<option value="7">
7
(AED 1,337.70)
</option>
<option value="8">
8
(AED 1,528.80)
</option>
<option value="9">
9
(AED 1,719.90)
</option>
<option value="10">
10
(AED 1,911)
</option>
</select>
</div>
</td>
</tr>
thanks in advance
Continue reading...