TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
yogesh vasu
NA
36
1.4k
C# Tab control in web page
Aug 6 2018 3:17 AM
Hello Everyone ,
I am having url in that i could control all HTML elements except tab elements in a <Li> Class i have tried all possible ways but i could not find
Tab structure tags for Details Tab
<li class="x-tab-strip-active" id="infoPageinfoPanelID__infoPage_myTab_object_aspsInfoDetailsTab"> <a class="x-tab-strip-close" id="ext-gen156"></a> <a class="x-tab-right" href="#" id="ext-gen157"> <em class="x-tab-left"><span class="x-tab-strip-inner"> <span class="x-tab-strip-text ">Details</span></span></em></a></li>
Tab structure tags for Related Objects Tab
<li class="" id="infoPageinfoPanelID__infoPage_myTab_object_ASPSInfoRelatedItemsTab"> <a class="x-tab-strip-close" id="ext-gen158"></a> <a class="x-tab-right" href="#" id="ext-gen159"> <em class="x-tab-left"> <span class="x-tab-strip-inner"><span class="x-tab-strip-text ">Related Objects</span></span></em></a></li>
while
(_Processing)
{
Application.DoEvents();
if
(doc !=
null
)
{
while
(x == 0)
{
System.Windows.Forms.Application.DoEvents();
IHTMLElementCollection curTags6 = doc.getElementsByTagName(
"li"
);
foreach
(var curElement
in
curTags6)
{
HTMLLIElementClass curATag = ((mshtml.HTMLLIElementClass)curElement);
lstATags.Add(curATag.innerHTML);
var curAnchorText = curATag.innerHTML !=
null
? curATag.innerHTML :
null
;
if
(curAnchorText !=
null
&& curAnchorText.Contains(
"Related Objects"
))
{
IHTMLElementCollection curTags7 = doc.getElementsByTagName(
"li"
);
foreach
(var curElement1
in
curTags7)
{
HTMLLIElementClass curATag1 = ((mshtml.HTMLLIElementClass)curElement1);
lstATags.Add(curATag1.innerHTML);
var curAnchorText1 = curATag1.innerHTML !=
null
? curATag1.innerHTML :
null
;
if
(curAnchorText1 !=
null
&& curAnchorText1.Contains(
"Details"
))
{
curATag1.IHTMLElement_className =
""
;
curATag.click();
curATag.click();
curATag.IHTMLElement_className =
" x-tab-strip-over x-tab-strip-active"
;
Only tabs get activated but tab information is not diplayed please anybody help me
Thanks and Regards,
Yogesh
Reply
Answers (
0
)
How to use choose keyboard in xamarin.forms
How to open launch UWP app from another UWP app on win 10?